Re: auto screen rotation
On 10/01/08 22:02 +, [EMAIL PROTECTED] wrote: > On Thu, 10 Jan 2008, [EMAIL PROTECTED] wrote: > > > On Thu, 10 Jan 2008, Chris Ball wrote: > > > >> Hi, > >> > >> > I just installed 679 and one new feature is that switching to > >> > tablet mode rotates the screen to one click from normal and lifting > >> > the screen rotates to normal. > >> > >> This feature has been turned off in Joyride, but the wrong version of > >> OHM is in Update.1; I'll file a bug to update it to the Joyride version. > >> > >> Thanks, > > > > glad to help (after all, that's why I'm running dev versions ;-) > > > > do the lid close switches show up to the system as keypresses? > > > > to try and test this I did ctrl-alt-F1 and flipped/closed the lid, this > killed X with the following error Thats a long standing bug (I'm pretty sure its in trac). X happily asks us to process the rotate even when it doesn't own the virtual console. When we first encountered this, we agreed it was a X core bug, but we never finished following through (since the workaround was easy enough). Jim - can you help us get this into the wheelhouse of the core X team? Jordan ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: auto screen rotation
Oh, and to answer your questions: > do the lid close switches show up to the system as keypresses? Sort of, yes; they show up on their own Linux input device. To see all of the input devices hooked up this way, you can: cat /proc/bus/input/devices However, HAL claims ownership of the ebook switch devic; the correct way to query it is to ask HAL. To get the current value of the ebook sensor, you can run "lshal" and look at the "button.state_value" value in the "OLPC ebook switch" section. To monitor the value in real-time, you would watch the messages coming out of HAL's dbus interface. Thanks, - Chris. -- Chris Ball <[EMAIL PROTECTED]> ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: auto screen rotation
Hi, > to try and test this I did ctrl-alt-F1 and flipped/closed the lid, > this killed X with the following error Ah, that makes sense; xrandr rotate seems to segfault when run while on a tty. This isn't worth any more of your time for the moment -- your build has a very old version of OHM in, with outdated bugs. Thanks, - Chris. -- Chris Ball <[EMAIL PROTECTED]> ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: auto screen rotation
after a reboot I can duplicate the crash (but only once per reboot) however the output on the console of the function keys seems to consistantly be the new version (before and after the crash on new reboots) David Lang On Thu, 10 Jan 2008, [EMAIL PROTECTED] wrote: > On Thu, 10 Jan 2008, [EMAIL PROTECTED] wrote: > >> On Thu, 10 Jan 2008, Chris Ball wrote: >> >>> Hi, >>> >>> > I just installed 679 and one new feature is that switching to >>> > tablet mode rotates the screen to one click from normal and lifting >>> > the screen rotates to normal. >>> >>> This feature has been turned off in Joyride, but the wrong version of >>> OHM is in Update.1; I'll file a bug to update it to the Joyride version. >>> >>> Thanks, >> >> glad to help (after all, that's why I'm running dev versions ;-) >> >> do the lid close switches show up to the system as keypresses? >> > > to try and test this I did ctrl-alt-F1 and flipped/closed the lid, this > killed X with the following error > > > > Backtrace: > 0: /usr/bin/X(xf86SigHandler+0x7e) [0x80c768e] > 1: [0xb7f63420] > 2: /usr/lib/libpixman-1.so.0(pixman_fill_mmx+0xc0) [0xb7ed3b00] > 3: /usr/lib/libpixman-1.so.0(pixman_fill+0x80) [0xb7ed0f10] > 4: /usr/lib/xorg/modules//libfb.so(fbFillRegionSolid+0xd4) [0xb7b2e2e4] > 5: /usr/lib/xorg/modules//libfb.so(fbPaintWindow+0xb3) [0xb7b2e423] > 6: /usr/lib/xorg/modules//libexa.so(ExaCheckPaintWindow+0x40) [0xb7b0fa30] > 7: /usr/lib/xorg/modules//libexa.so(exaPaintWindow+0xb4) [0xb7b09d64] > 8: /usr/bin/X [0x81538cf] > 9: /usr/bin/X(compPaintWindowBackground+0x6d) [0x80f80cd] > 10: /usr/bin/X(miWindowExposures+0xfa) [0x811418a] > 11: /usr/bin/X [0x80b036a] > 12: /usr/bin/X(miHandleValidateExposures+0x78) [0x812a728] > 13: /usr/bin/X [0x80b3f18] > 14: /usr/lib/xorg/modules//libexa.so [0xb7b06f60] > 15: /usr/bin/X [0x80efa73] > 16: /usr/lib/xorg/modules/drivers//amd_drv.so [0xb7b5c7ff] > 17: /usr/bin/X(RRCrtcSet+0x15c) [0x814b5fc] > 18: /usr/bin/X(ProcRRSetScreenConfig+0x49f) [0x815006f] > 19: /usr/bin/X [0x8149ed5] > 20: /usr/bin/X(Dispatch+0x2ba) [0x808490a] > 21: /usr/bin/X(main+0x905) [0x806c5a5] > 22: /lib/libc.so.6(__libc_start_main+0xe0) [0xb7ce1390] > 23: /usr/bin/X(FontFileCompleteXLFD+0x1e5) [0x806b8c1] > > Fatal server error: > Caught signal 11. Server aborting > > (II) OLPC ALPS GlideSensor: Off > (II) AT Translated Set 2 keyboard: Off > > I have not yet been able to duplicate this error, but I do notice that > when I switch back to the console the function keys and gamepads don't > produce the samw result (instead of showing ^[[A it just shows A) I > haven't rebooted yet, I will try that next. > > David Lang > ___ > Devel mailing list > Devel@lists.laptop.org > http://lists.laptop.org/listinfo/devel > ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: auto screen rotation
On Thu, 10 Jan 2008, [EMAIL PROTECTED] wrote: > On Thu, 10 Jan 2008, Chris Ball wrote: > >> Hi, >> >> > I just installed 679 and one new feature is that switching to >> > tablet mode rotates the screen to one click from normal and lifting >> > the screen rotates to normal. >> >> This feature has been turned off in Joyride, but the wrong version of >> OHM is in Update.1; I'll file a bug to update it to the Joyride version. >> >> Thanks, > > glad to help (after all, that's why I'm running dev versions ;-) > > do the lid close switches show up to the system as keypresses? > to try and test this I did ctrl-alt-F1 and flipped/closed the lid, this killed X with the following error Backtrace: 0: /usr/bin/X(xf86SigHandler+0x7e) [0x80c768e] 1: [0xb7f63420] 2: /usr/lib/libpixman-1.so.0(pixman_fill_mmx+0xc0) [0xb7ed3b00] 3: /usr/lib/libpixman-1.so.0(pixman_fill+0x80) [0xb7ed0f10] 4: /usr/lib/xorg/modules//libfb.so(fbFillRegionSolid+0xd4) [0xb7b2e2e4] 5: /usr/lib/xorg/modules//libfb.so(fbPaintWindow+0xb3) [0xb7b2e423] 6: /usr/lib/xorg/modules//libexa.so(ExaCheckPaintWindow+0x40) [0xb7b0fa30] 7: /usr/lib/xorg/modules//libexa.so(exaPaintWindow+0xb4) [0xb7b09d64] 8: /usr/bin/X [0x81538cf] 9: /usr/bin/X(compPaintWindowBackground+0x6d) [0x80f80cd] 10: /usr/bin/X(miWindowExposures+0xfa) [0x811418a] 11: /usr/bin/X [0x80b036a] 12: /usr/bin/X(miHandleValidateExposures+0x78) [0x812a728] 13: /usr/bin/X [0x80b3f18] 14: /usr/lib/xorg/modules//libexa.so [0xb7b06f60] 15: /usr/bin/X [0x80efa73] 16: /usr/lib/xorg/modules/drivers//amd_drv.so [0xb7b5c7ff] 17: /usr/bin/X(RRCrtcSet+0x15c) [0x814b5fc] 18: /usr/bin/X(ProcRRSetScreenConfig+0x49f) [0x815006f] 19: /usr/bin/X [0x8149ed5] 20: /usr/bin/X(Dispatch+0x2ba) [0x808490a] 21: /usr/bin/X(main+0x905) [0x806c5a5] 22: /lib/libc.so.6(__libc_start_main+0xe0) [0xb7ce1390] 23: /usr/bin/X(FontFileCompleteXLFD+0x1e5) [0x806b8c1] Fatal server error: Caught signal 11. Server aborting (II) OLPC ALPS GlideSensor: Off (II) AT Translated Set 2 keyboard: Off I have not yet been able to duplicate this error, but I do notice that when I switch back to the console the function keys and gamepads don't produce the samw result (instead of showing ^[[A it just shows A) I haven't rebooted yet, I will try that next. David Lang ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: auto screen rotation
On Thu, 10 Jan 2008, Chris Ball wrote: > Hi, > > > I just installed 679 and one new feature is that switching to > > tablet mode rotates the screen to one click from normal and lifting > > the screen rotates to normal. > > This feature has been turned off in Joyride, but the wrong version of > OHM is in Update.1; I'll file a bug to update it to the Joyride version. > > Thanks, glad to help (after all, that's why I'm running dev versions ;-) do the lid close switches show up to the system as keypresses? short of compilng my own version of OHM is there a way for me to tweak how they are used? David Lang ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: auto screen rotation
Hi, > I just installed 679 and one new feature is that switching to > tablet mode rotates the screen to one click from normal and lifting > the screen rotates to normal. This feature has been turned off in Joyride, but the wrong version of OHM is in Update.1; I'll file a bug to update it to the Joyride version. Thanks, - Chris. -- Chris Ball <[EMAIL PROTECTED]> ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
auto screen rotation
I just installed 679 and one new feature is that switching to tablet mode rotates the screen to one click from normal and lifting the screen rotates to normal. these positions are absolute, no matter hat the user selects. this means that when I switch to tablut mode and put the screen back in landscape mode I'm left with the mouse pointer in the middle of the screen, I lift thescreen enough to reach the mousepad and flick the mouse to the right edge, then lose the screen and it rotates on me (and when I totate it three more clicks to get it back the mouse is back in the middle of the text I am trying to read) twwo thing here 1.why is it going to portrit mode? I can see some justaficaton for either landscape mode (depending on if you want the direction gamepad under your left or roght thumb and the extra space for the handle to the top or bottom) but I don't see any nice way to use both of the gamepad controls in portrit mode. (I do use portrit mode sometimes to make reading tall, narrow ccolumns easier, but it's hardly my default) 2. this is overriding what the user is explicitly setting, why, and how can a user change this default? David Lang ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel