Author Topic: Htc Universal  (Read 698828 times)

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #405 on: June 02, 2008, 06:03:51 am »
Quote from: ShiroiKuma
Quote from: ShiroiKuma
So I'm experimenting with it, it seems sound is the biggest problem. I can play 640x480 movies without sound smooth with no glitches. So have been trying different settings for mencoder to decrease the sound taxation of the processor, so far they don't seem to be making a difference. I've tried with the three sampling rates, also have decreased the CBR to 64, but can't play the 640x480 movie. Also haven't found a fullscreen option for 320x240 so far.
I've achieved high quality high performance video playback at 640x480. Script details at http://sumoudou.org/index.php?cmd=%E7%9B%B...the%20Universal
So it seems something has changed, in the process of aptitude upgrading, I cannot play high quality movies again.

Don't know what the reason is, but the movies converted with the above-mentioned approach that I could play satisfactorily, can't be played well now, they lag etc.

It seems there's been some changes in the X scripts or something, since now when you do xrandr -o normal it doesn't rotate the display back left, and pretends the landscape rotation on the Uni is the normal one. But it isn't, the display IS rotated. You only get it to rotate to its unrotated position via xrandr -o left which should be wrong however.

Maybe this has something to do with it...

If anyone has a clue to what could have changed and how to get high performance video, please share. It's a great shame, it was working, but can't get it to work again... Actually, maybe it was the hacks that I had installed, related to the yonggun's page  that made it work, and now nothing...

EDIT 1: It is titchy-xserver, it seems it is built prerotated, however then it's slower than the xserver-kdrive-fbdev from yonggun's page, so it doesn't allow the playback of high quality video like the kdrive-fbdev xserver does. I've rolled back to xserver-xdrive-fbdev, however have now the stylus issues again, so more fiddlin' required...
« Last Edit: June 02, 2008, 10:34:02 am by ShiroiKuma »
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

webdork

  • Newbie
  • *
  • Posts: 16
    • View Profile
Htc Universal
« Reply #406 on: June 02, 2008, 06:23:18 am »
Quote from: hakkinen
My USB port works ok now. But after 10 minutes, it disconnects automatically so I can't connect to Internet anymore. I had to unplug USB and plug in again, it worked. How can I solve this problem?

Look into the Ticht-autosuspend

Sam Liddicott

  • Newbie
  • *
  • Posts: 44
    • View Profile
Htc Universal
« Reply #407 on: June 02, 2008, 05:20:28 pm »
Quote from: webdork
Quote from: hakkinen
My USB port works ok now. But after 10 minutes, it disconnects automatically so I can't connect to Internet anymore. I had to unplug USB and plug in again, it worked. How can I solve this problem?

Look into the Ticht-autosuspend

or even:

apt-get update
apt-get upgrade

the updates should fix it.

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #408 on: June 03, 2008, 07:39:38 am »
Quote from: Sam Liddicott
How do I make phoneui shiny go away?

I can't make the missed-call screen go away.
even "chvt" from an SSH session doesn't return:
strace tail:

open("/dev/tty0", O_RDWR)               = 3
ioctl(3, KDGKBTYPE, 0xbef24c4f)         = 0
ioctl(3, VIDIOC_G_COMP or VT_ACTIVATE, 0x1) = 0
ioctl(3, VIDIOC_S_COMP or VT_WAITACTIVE
I think SDL (used by titchy-phoneui-shiny, via pygame) can conflict with things that do chvt or openvt.  Are you also running titchy-phoneui-console (the whiptail UI)?

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #409 on: June 03, 2008, 07:43:16 am »
Quote from: ShiroiKuma
Also haven't found a fullscreen option for 320x240 so far.
Have you tried this?

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #410 on: June 03, 2008, 08:33:25 am »
Quote from: datathief
Quote from: ShiroiKuma
Also haven't found a fullscreen option for 320x240 so far.
Have you tried this?
Thanks for the info. I've experimented with this fbmode, even seems to be the same page. It didn't work, but it seems to me to have referred to a 320x240 device. So just to be sure, I'll try to play with it tonight and will report on the results.

So far however, I've rolled back to yonggun's xserver, which I've modified to work on the Uni. Will write instructions soon how to get it work. Using it, it's faster than your server, dunno why, but it works. The caveat is it only works with ratpoison as the WM, not with IceWM. Under your prerotated xserver however, I wasn't able to get it going at all, in a way, that would output watchable results... (
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #411 on: June 04, 2008, 10:55:24 am »
Quote from: datathief
I will add the ability to close a screen with Ctrl-C, though, because that's caught me a couple of times while developing it.  
That would be beneficial, I got caught today, after ending a call, the in-call dialog was still on, and couldn't kill it. Had to soft-reset...
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

Sam Liddicott

  • Newbie
  • *
  • Posts: 44
    • View Profile
Htc Universal
« Reply #412 on: June 05, 2008, 03:47:29 am »
Quote from: datathief
Quote from: Sam Liddicott
How do I make phoneui shiny go away?

I can't make the missed-call screen go away.
even "chvt" from an SSH session doesn't return:
strace tail:

open("/dev/tty0", O_RDWR)               = 3
ioctl(3, KDGKBTYPE, 0xbef24c4f)         = 0
ioctl(3, VIDIOC_G_COMP or VT_ACTIVATE, 0x1) = 0
ioctl(3, VIDIOC_S_COMP or VT_WAITACTIVE
I think SDL (used by titchy-phoneui-shiny, via pygame) can conflict with things that do chvt or openvt.  Are you also running titchy-phoneui-console (the whiptail UI)?

Yes

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #413 on: June 06, 2008, 07:31:28 am »
Quote from: ShiroiKuma
Quote from: datathief
I will add the ability to close a screen with Ctrl-C, though, because that's caught me a couple of times while developing it.  
That would be beneficial, I got caught today, after ending a call, the in-call dialog was still on, and couldn't kill it. Had to soft-reset...
New version uploaded.  Now:
  • Uninstalls titchy-phoneui-console, to avoid some conflicts.
  • Can be closed using 'esc' (the windows key)
  • Has a rudimentary dialler (the contacts key, top row of the keyboard)
Also, I've uploaded a new titchy-hardware-support, that turns on the speaker on the outside of the lid (I'm assuming most of us make calls with the screen closed).

Edit: Fixed a problem with titchy-hardware-support that caused a faint buzzing sound from the stereo speakers after resuming from suspend.
« Last Edit: June 06, 2008, 05:32:19 pm by datathief »

hakkinen

  • Newbie
  • *
  • Posts: 5
    • View Profile
Htc Universal
« Reply #414 on: June 07, 2008, 07:14:51 am »
Quote from: datathief
Quote from: ShiroiKuma
Quote from: datathief
I will add the ability to close a screen with Ctrl-C, though, because that's caught me a couple of times while developing it.  
That would be beneficial, I got caught today, after ending a call, the in-call dialog was still on, and couldn't kill it. Had to soft-reset...
New version uploaded.  Now:
  • Uninstalls titchy-phoneui-console, to avoid some conflicts.
  • Can be closed using 'esc' (the windows key)
  • Has a rudimentary dialler (the contacts key, top row of the keyboard)
Also, I've uploaded a new titchy-hardware-support, that turns on the speaker on the outside of the lid (I'm assuming most of us make calls with the screen closed).

Edit: Fixed a problem with titchy-hardware-support that caused a faint buzzing sound from the stereo speakers after resuming from suspend.

We have to upgrade which package???

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #415 on: June 07, 2008, 02:48:03 pm »
Quote from: hakkinen
We have to upgrade which package???
titchy-phoneui-shiny and titchy-hardware-support.

And titchy-phoneui-base, now, too  -  I've made changes to this package to:
  • kill processes using the sound device before playing the ringtone (drastic, but better than not playing the ringtone at all)
  • allow the ringtone volume to be configured
  • allow personalised ringtones and more (see /etc/default/titchy-phoneui-base for examples)

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #416 on: June 09, 2008, 03:47:10 am »
Quote from: datathief
  • kill processes using the sound device before playing the ringtone (drastic, but better than not playing the ringtone at all)
Hmmm... this is quite tough )

I've been thinking about this, but haven't had time to research it: specifically mplayer related. Would it not be possible not to kill, but send it a pause signal? I don't know if mplayer accepts pause commands externally, but theoretically even if it'd be emulating a space key press (in the worst case) this should be possible, no?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #417 on: June 09, 2008, 04:58:20 am »
Quote from: ShiroiKuma
Hmmm... this is quite tough )

I've been thinking about this, but haven't had time to research it: specifically mplayer related. Would it not be possible not to kill, but send it a pause signal? I don't know if mplayer accepts pause commands externally, but theoretically even if it'd be emulating a space key press (in the worst case) this should be possible, no?
Unfortunately, mplayer doesn't seem to release the audio device when paused, so the ringtone still wouldn't play.

I think there may be a solution using a sound server  -  with pulseaudio, for example, it should be possible to mute all the streams except the ringtone during a call.  However, pulseaudio seems to have far too many dependencies to be the default.  I don't think it's nearly as easy using esound (lightweight, few dependencies), but I'll investigate.

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #418 on: June 09, 2008, 07:04:44 am »
Quote from: datathief
New version uploaded.  Now:
  • Has a rudimentary dialler (the contacts key, top row of the keyboard)
The dialer doesn't have UTF-8 support coded in, it doesn't display it properly after replacing Vera.ttf by a UTF-8 font.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #419 on: June 09, 2008, 09:59:53 am »
Quote from: datathief
  • Has a rudimentary dialler (the contacts key, top row of the keyboard)
I believe there is a serious flaw in the dialer and the all the new pygame dialogs in combination with X.

When I bring up the dialog in X, it malfunctions and keyboard activity is echoed to the underlying X app, only clearing the part of the screen associated with it. To put it simply:

Let's say I have rxvt open. I bring up the dialer, then press the down arrow a couple of times and then enter. I see the rows in the the underlying rxvt being cleared, i.e. the dialog backround disappears under these rows and the enter sends enter to the rxvt.

If I kill xdm, it gets stuck in a black vt, that cannot be killed or exited, can't change to a vt, so that X cannot be quitted.

Have you tested it with X, datathief?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze