Notices


Reply
Thread Tools
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,802 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#1451
Whoa. Very interesting news.

Edit /usr/bin/xephwm5 in your Debian chroot.

Go to the end. Find the line that has qobi-wmhint-fix on it. Uncomment it (remove the #) and change that line to read:

Code:
sudo /sbin/qobi-wmhint-fix $PARWIN
Comment out the line under it, the one that has /usr/bin/set-focus on it.

Open LXDE. Try to lose keyboard focus. See if you get the same results that I'm getting, which are: NO KEYBOARD FOCUS LOSS! You can switch to and from LXDE like any other app.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following 9 Users Say Thank You to qole For This Useful Post:
debernardis's Avatar
Posts: 2,142 | Thanked: 2,050 times | Joined on Dec 2006 @ Sicily
#1452
Wow! That works! Great...
__________________
Ernesto de Bernardis

 
Posts: 466 | Thanked: 661 times | Joined on Jan 2009
#1453
Works well for me as well.
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,802 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#1454
I have sent Easy Debian 0.9.51 to Extras-devel.

LXDE keyboard focus is now completely fixed. You can treat LXDE like any other Maemo window.

This version adds a Maemo-side script, /usr/bin/debian-lxde that does the same thing that xephwm5 was doing in the chroot, except it uses the new fixed way that never loses keyboard focus.

It now depends on wmctrl and zenity in Maemo, which adds some bulk to the installed size, but the results are worth it.

I have also caved to rebhana's pleading; the new script starts LXDE using debbie-sue. Switch this to debbie if you prefer the old behaviour.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following 10 Users Say Thank You to qole For This Useful Post:
Posts: 11 | Thanked: 2 times | Joined on Apr 2010 @ Oman
#1455
Originally Posted by qole View Post
I have sent Easy Debian 0.9.51 to Extras-devel.

LXDE keyboard focus is now completely fixed. You can treat LXDE like any other Maemo window.

This version adds a Maemo-side script, /usr/bin/debian-lxde that does the same thing that xephwm5 was doing in the chroot, except it uses the new fixed way that never loses keyboard focus.

It now depends on wmctrl and zenity in Maemo, which adds some bulk to the installed size, but the results are worth it.

I have also caved to rebhana's pleading; the new script starts LXDE using debbie-sue. Switch this to debbie if you prefer the old behaviour.

I downloaded the new update and it is working great now..

Last edited by qalhat; 2010-06-09 at 14:32.
 
rebhana's Avatar
Posts: 579 | Thanked: 471 times | Joined on Jan 2010 @ Austria
#1456
Originally Posted by qole View Post
I have sent Easy Debian 0.9.51 to Extras-devel.
I have first tried the Debian-side fix, seen that it worked, and then switched to 0.9.51. However, there I've encountered some occasional weird behavior:

When I first opened LXDE, to my surprise I had an English keyboard again, despite the "setkbd de" in /etc/xdg/lxsession/LXDE/autostart. Closing chroot and starting LXDE again, I then had a German keyboard, but some of my additional remappings of the keyboard were missing out (I do those further remappings with xmodmap launched from /etc/xdg/lxsession/LXDE/autostart). Doing it a third time, my keyboard was finally as it used to be. I've never had such unpredictabilities with my keyboard hacks before - albeit some things never worked.

On one of the launches of LXDE I even had missing keyboard focus from the very beginning! Though once started successfully, I don't lose it, neither when going to task manager nor through the power button.

And just now I had LXDE not starting at all after clicking the OK button. After the little window closed, I was left with the screen telling about Ctrl+Backspace, from which I could not even get out to the task manager without resorting to the camera trick.

Could it be that there is some race condition complicating the combination of Maemo-side and Debian-side scripts?

I'm testing it some more, but perhaps I should also go back and try out more extensively the Debian-side fix.

EDIT: After a reboot of the phone, I once again could not start LXDE. It's hanging at the "Ctrl+Back" screen. These are the processes that I see with top:
Code:
Mem: 240968K used, 4572K free, 0K shrd, 13984K buff, 101748K cached
CPU: 35.5% usr 64.2% sys  0.0% nice  0.0% idle  0.0% io  0.0% irq  0.1% softirq
Load average: 4.48 3.65 1.78
  PID  PPID USER     STAT   RSS %MEM %CPU COMMAND
  808   663 root     R <  10956  4.4 41.4 /usr/bin/Xorg -logfile /tmp/Xorg.0.log -logverbose 1 -nolisten tcp -noreset -s 0 -core 
  756     1 root     S     6768  2.7  5.1 /usr/sbin/ohmd --no-daemon 
 1113  1031 user     S    17960  7.2  2.5 /usr/bin/hildon-status-menu                                                
  764     1 pulse    S <   4528  1.8  1.7 /usr/bin/pulseaudio --system --high-priority 
 1646  1542 user     R      588  0.2  0.9 /bin/sh /usr/bin/debian-lxde 
 1124  1031 user     S    15712  6.3  0.3 /usr/bin/hildon-desktop                                                    
 1689  1684 user     S     5700  2.3  0.3 /usr/bin/Xephyr :1 -screen 800x480 -br -ac 
  698     1 root     S     1140  0.4  0.3 /usr/sbin/bme_RX-51 
 3926  3772 root     R      748  0.3  0.3 top 
   10     2 root     SW       0  0.0  0.3 [omap2_mcspi]
 1041   663 user     S     8932  3.6  0.2 /usr/bin/systemui 
  734   663 root     S <   2548  1.0  0.2 /sbin/mce --force-syslog
EDIT2: After finalling killing it, and doing a close chroot, Xorg is still running, with CPU at 600MHz, so I have to reboot to get rid of that.
__________________
Need more apps for the N900? Check out Qole's Easy Debian and read the wiki!
My Easy Debian installation log

Last edited by rebhana; 2010-06-09 at 17:03.
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,802 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#1457
rebhana: that is some very odd behaviour. XOrg is the Maemo X Server, it is Xephyr that is the culprit.

As for the race conditions, I try to avoid them by waiting in two loops in my script.

I also am noticing more "variability" in my LXDE startup, but not since 0.9.51, no, this is since PR 1.2. Often, I get an X instead of a cursor, and the icons seem to be alternating between two themes. Very strange!

It often seems to be the first startup that has the most problems. Maybe I'll open the chroot with a harmless command first, then proceed from there...?
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following User Says Thank You to qole For This Useful Post:
rebhana's Avatar
Posts: 579 | Thanked: 471 times | Joined on Jan 2010 @ Austria
#1458
Originally Posted by qole View Post
rebhana: that is some very odd behaviour. XOrg is the Maemo X Server, it is Xephyr that is the culprit.
I'm suspecting now that Xorg was behaving so strangely, because right after the boot the phone was busy with trackerd. So after my last reboot, I waited until all the activity has gone away, and then I can start LXDE just fine.

Perhaps I should try whether I can get any of this odd behavior with 0.9.50 and the Debian-side fix?

EDIT: I'm testing 0.9.50 with Debian-side fix now, and I'm not able to get any of the odd behavior so far. I'll keep you posted.
__________________
Need more apps for the N900? Check out Qole's Easy Debian and read the wiki!
My Easy Debian installation log

Last edited by rebhana; 2010-06-09 at 17:39.
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,802 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#1459
If I start the Maemo-side script with

Code:
debbie 'echo "opening the chroot"'
the problems don't seem to happen... Can you confirm, rebhana?
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
rebhana's Avatar
Posts: 579 | Thanked: 471 times | Joined on Jan 2010 @ Austria
#1460
Originally Posted by qole View Post
If I start the Maemo-side script with

Code:
debbie 'echo "opening the chroot"'
the problems don't seem to happen... Can you confirm, rebhana?
Should that go into /usr/bin/debian-lxde or be run separately in a terminal?

EDIT: Actually, I think the one instance where LXDE did start, but without keyboard focus was with open chroot, and also in those cases where the keyboard behaved slightly differently. But I'll try again.
__________________
Need more apps for the N900? Check out Qole's Easy Debian and read the wiki!
My Easy Debian installation log

Last edited by rebhana; 2010-06-09 at 18:09.
 
Reply

Tags
beta, debian, easy debian, extras-devel, fremantle, i <3 qole, squeeze

Thread Tools

 
Forum Jump


All times are GMT. The time now is 11:41.