Hi Red_Lion,
Thank you. I will take a look at it. But I think HP-WMI can only be compiled on kernel 2.6.28 (Jaunty) and up. Not on kernel 2.6.27 (Intrepid) or lower.
Hi Red_Lion,
Thank you. I will take a look at it. But I think HP-WMI can only be compiled on kernel 2.6.28 (Jaunty) and up. Not on kernel 2.6.27 (Intrepid) or lower.
No, 2.6.27 have hp_wmi:
http://git.kernel.org/?p=linux/kerne...712ccd2da1b220
It's just not included by ubuntu (or you not modprobe it, but it's less real )
Hi Red_Lion,
You are correct, I spoke too soon. From the Makefile "No support for 2.4 series kernels". Do you know which kernel version this hp-wmi.ko is for?
It compiled fine. I installed it in "/etc/modules" and it is now present in "lsmod":
However I didn't get the script to work on swiveling yet.Code:hp_wmi 14768 0
Edit: Tried a few things. Still no luck.
Last edited by Favux; August 4th, 2009 at 11:03 PM.
ls /sys/devices/platform/hp-wmi/ ?
dmesg | grep -F WMI ?
Hi Red_Lion,
About all I learned is the first 2.6(.27?) HP-WMI was accepted 7/25/08 and the one I'm using 2.6.27 is 9/3/08 with some changes like hotkey_query added. Ignoring the git identifiers of course.
Code:$ ls /sys/devices/platform/hp-wmi/ als display dock driver hddtemp modalias power rfkill subsystem ueventCode:$ dmesg | grep -F WMI [ 14.958643] ACPI: WMI: Mapper loaded [ 18.528333] input: HP WMI hotkeys as /devices/virtual/input/input12
/sys/devices/platform/hp-wmi/dock parsing only via hp_wmi. hp_wmi using wmi system what work correctly in you kernel. Try test hp_wmi driver:
on "sleep 5s" rotate screen to tablet.Code:cat /sys/devices/platform/hp-wmi/dock ; sleep 5s ; cat /sys/devices/platform/hp-wmi/dock
Hi Red_Lion,
It works! It works! I have auto-magic rotation!
automatic rotation + magic rotation = auto-magic rotation
I had a typo in the command line for the script in Sessions (Startup Applications in Jaunty). I must have looked at it 10 times and kept missing it. I finally looked at .xsessions-errors again and spotted it.
Thank you!
Edit: And your test line works.
Good what it work
Also i recomend to add second my script to system autostart (/etc/rc.local example - i can't remember what file exec after last init level in ubuntu). Make it background ("&" after script filename).
It's realy give to you working remoute and bezel buttons (only what work in normal mode - Q and DVD) in tablet mode.
Hi Red_Lion,
I meant to ask you about the bezel button script. Mine work when rotated. You have the TX2500 correct? Are you using "fglrx"? Are you using Compiz? ATI "fglrx" doesn't work correctly with Compiz when rotated. Have you run the aticonfig command? See Appendix 1 here: http://ubuntuforums.org/showthread.php?p=6274392
Do you have a link to the hp-wmi source code and makefile you packaged?
Thanks again.
I not using compiz. Yes - i use fglrx and make xrandr support for rotation via aticonfig.
hp_wmi what i posted - from 2.6.30, makefile crated by me - so i have no link
I have tx2500 (tx2650er)
P.S. bezel/remoute button script need only if they making "dead" on tablet mode. It reset controller for activate them.
Last edited by Red_Lion; August 5th, 2009 at 10:58 AM.
Bookmarks