Author Topic: Htc Universal  (Read 698778 times)

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #420 on: June 09, 2008, 10:17:30 am »
Quote from: ShiroiKuma
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?
It seems to work fine with xserver-titchy, although I haven't done much testing.  I haven't tested it with the xserver package you're using...
« Last Edit: June 09, 2008, 10:20:17 am by datathief »

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #421 on: June 09, 2008, 10:26:52 am »
Quote from: ShiroiKuma
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.
I always forget that part...

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #422 on: June 09, 2008, 10:34:43 am »
Quote from: datathief
It seems to work fine with xserver-titchy, although I haven't done much testing.  I haven't tested it with the xserver package you're using...
I thought you were gonna say that  

OK, I'll think what next...

It could be somehow associated with the different Xfbdev...

Do you have an idea maybe, based on what you've changed in the latest version, what the culprit would be?

I may be the only one, but having HiQ video is sorta important I think, to make we want to preserve yonggun's xserver over yours.

EDIT1: Do you have version 1.8 of the shiny UI in your pool so that I can downgrade to it temporarily?
« Last Edit: June 09, 2008, 11:05:50 am by ShiroiKuma »
[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 #423 on: June 09, 2008, 11:21:38 am »
Quote from: ShiroiKuma
Quote from: datathief
It seems to work fine with xserver-titchy, although I haven't done much testing.  I haven't tested it with the xserver package you're using...
I thought you were gonna say that  

OK, I'll think what next...

It could be somehow associated with the different Xfbdev...

Do you have an idea maybe, based on what you've changed in the latest version, what the culprit would be?
I haven't changed any of the keyboard or display code.

As far as I can tell, SDL opens a new VT to get keyboard input.  It should switch to that VT when it needs to, and switch back when it's done, but something is causing that to fail  -  it stays on the xserver's VT, so keyboard events go to the xserver.

I have a couple of ideas that may help.  I'll work on them tonight.

Quote
I may be the only one, but having HiQ video is sorta important I think, to make we want to preserve yonggun's xserver over yours.

EDIT1: Do you have version 1.8 of the shiny UI in your pool so that I can downgrade to it temporarily?
No.  I'll try to find a copy.

Edit: I've made some changes  -  could you upgrade titchy-phoneui-shiny and let me know if it's any better?
« Last Edit: June 09, 2008, 02:46:59 pm by datathief »

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #424 on: June 10, 2008, 03:12:14 am »
Quote from: datathief
Edit: I've made some changes  -  could you upgrade titchy-phoneui-shiny and let me know if it's any better?
Yeah, this one works without problems. The UTF-8 also works.

I have two more "candy" like comments:

1. In the dialer, the listed names drawn from the VCF file are strangely spaced, i.e. some seem to contain one, two, three spaces in front of them, some none, so that their list is not left justified.
2. I think there should be a keyboard repeat, if you hold the down or up button, the list should scroll...
[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 #425 on: June 10, 2008, 03:16:48 am »
Quote from: datathief
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.

How about alsa dmix?

Sam

Sam Liddicott

  • Newbie
  • *
  • Posts: 44
    • View Profile
Htc Universal
« Reply #426 on: June 10, 2008, 03:23:35 am »
I've finally got vala working with glade, so I'll try my phone UI using vala and glade.

Sam

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #427 on: June 10, 2008, 04:46:21 am »
Quote from: Sam Liddicott
How about alsa dmix?

Sam
Do you have dmix working?

This would solve the problem of the ringtone not playing (as long as everything uses it), but there's no way to mute everything but the ringtone.  Sending STOP signals to pause processes not involved in the call might work, though.
« Last Edit: June 10, 2008, 04:48:05 am by datathief »

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #428 on: June 10, 2008, 04:51:38 am »
Quote from: ShiroiKuma
1. In the dialer, the listed names drawn from the VCF file are strangely spaced, i.e. some seem to contain one, two, three spaces in front of them, some none, so that their list is not left justified.
Are there spaces in the vcf file after the ':' in the 'FN' field?  If not, could you post a vcard that exhibits this problem?
Quote
2. I think there should be a keyboard repeat, if you hold the down or up button, the list should scroll...
Agreed.

linuxFreq

  • Newbie
  • *
  • Posts: 13
    • View Profile
Htc Universal
« Reply #429 on: June 10, 2008, 08:17:00 am »
Hey,

Got titchy installed last night...

I had to format my SD slightly different to what was described...booted into haret with ramdisk.

Mounted and formatted the card using fdisk on the universal.
Made the file system on the universal too.

Did a "sync" and unmounted.
Did the tar stuff on the pc (saves transferring)...

Changed the zImage and startup files to the ones provided on the wiki and managed to boot titchy...

I couldn't get it to mount the file system when i did it all on the pc...not sure why but was probably just being silly and was too lazy to figure out why!

Gonna play about with trying to get a window manager on the go...

Do i need to install X...i notice there is an Xserver-titchy...does this do the job of X?

Ta

datathief

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Htc Universal
« Reply #430 on: June 10, 2008, 09:30:12 am »
Quote from: linuxFreq
Do i need to install X...i notice there is an Xserver-titchy...does this do the job of X?
Yes.

linuxFreq

  • Newbie
  • *
  • Posts: 13
    • View Profile
Htc Universal
« Reply #431 on: June 10, 2008, 10:23:49 am »
Cool cheers.

What's a good window manager to go with?  I've been reading through this whole thread and it's hard work!  I've got a feeling the answer is in here somewhere.

I got flux but i get a couldn't connect to XServer error and Ice gives me a can't open display. I'm trying to not work on the universal as i have an exam tomorrow and on thursday but it's too tempting to play with!!

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Htc Universal
« Reply #432 on: June 10, 2008, 10:36:16 am »
In my opinion the best currently is ratpoison, but it's a little hardcore if you're not used to it and might be scary to the average Joe. For him then IceWM is by far the best for this usage, I think. Low weight, fast, not as fast as ratpoison, but stylus-clickable. I've experimented with many. In my view anything heavier than IceWM is unusuable on the Uni, too slow...

That's also why gdm is too heavy and you have to use xdm.
« Last Edit: June 10, 2008, 10:36:42 am by ShiroiKuma »
[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 #433 on: June 10, 2008, 11:17:37 am »
Quote from: linuxFreq
Cool cheers.

What's a good window manager to go with?  I've been reading through this whole thread and it's hard work!  I've got a feeling the answer is in here somewhere.

I got flux but i get a couldn't connect to XServer error and Ice gives me a can't open display. I'm trying to not work on the universal as i have an exam tomorrow and on thursday but it's too tempting to play with!!
Try this:
Code: [Select]
apt-get install xinit
echo icewm-session >.xinitrc
startx

Alternatively, install xdm, which will manage the X server and window manager.  Make sure you set the root password first, or create a new user with a password (xdm won't let you log in without a password).
« Last Edit: June 10, 2008, 11:22:22 am by datathief »

linuxFreq

  • Newbie
  • *
  • Posts: 13
    • View Profile
Htc Universal
« Reply #434 on: June 10, 2008, 03:10:56 pm »
Ah yeah cheers. When i rebooted it gave me the x window login screen.

Now though i can't seem to get connected to the net. I had it working through the usb connection and windows vista as described in the wiki but now it's being weird.

I can ping the universal from vista but can't talk to the pc from the universal. I am connected with "limited connectivity" according to windows...

I would go into ubuntu but like i said i'm trying to pretend to myself that i'm studying and i need to be in windows for it...

I tried connecting to my router quickly but wasn't successful. In what way is the wireless unstable? In that it is hard to maintain a connection?

Edit:
Yeah i installed xdm
« Last Edit: June 10, 2008, 03:14:11 pm by linuxFreq »