Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: vinnie on February 10, 2011, 11:26:43 PM
-
I found this guide http://forums.debian.net/viewtopic.php?f=7&t=59055 for debian but command dont work.
9. Here is a fix for the screen rotate button, Normally the Roate Button is assigned to XScreenSaver (at least in gnome).
There is a fix but it is a bit more advanced and I found this in the ubuntu forums posted by a user, Sergey1369 (see notes at bottom for references).
Do this as root to be able to map commands to the rotate button:
“cd /lib/modules/2.6.35-23-generic/kernel/drivers/platform/x86
cp eeepc-laptop.ko eeepc-laptop.ko.orig
sed -e 's!\x1a\x0\x0\x0\x98!\x1a\x0\x0\x0\x99!' eeepc-laptop.ko.orig > eeepc-laptop.ok
rmmod eeepc-laptop
modprobe eeepc-laptop
GOOD: Now button can be binded via standard keyboard shortcuts to any program.
BAD: every kernel update requires repeating procedure.”
Now create a mapping as user:
echo “keycode 161 = XF86Mail” >> ~/.Xmodmap
Reboot or restart X-server and you can now map the button in your keyboard shortcuts (like the touchrotate command or compiz expo in my case)
I am interested in this part, you could tell me what differences there are between tinycore and debian to make it work?
-
I found this guide http://forums.debian.net/viewtopic.php?f=7&t=59055 for debian but command dont work.
This could be due to a couple of things:
1. the debian module is not from the same kernel version as that used by tc and thus could have changed.
2. did you use busybox "sed" or the full version from the "sed" extension? Sometimes the full version will work whereas the busybox version will not.
-
Ugh, a binary hack. That might or might not work.
Anyway, did you gunzip the module before doing that?
-
Gunzip is installed and working, but I had not unpacked, this time I did.
I also installed sed.tcz for safety
root@box:/lib/modules/2.6.33.3-tinycore/kernel/drivers/platform/x86# gunzip eeepc-laptop.ko.gz
root@box:/lib/.../x86# cp eeepc-laptop.ko eeepc-laptop.ko.orig
root@box:/lib/.../x86# sed -e 's!\x1a\x0\x0\x0\x98!\x1a\x0\x0\x0\x99!' eeepc-laptop.ko.orig > eeepc-laptop.ok
ok
root@box:/lib/.../x86# rmmod eeepc-laptop
rmmod: can't unload 'eeepc_laptop': unknown symbol in module, or unknown parameter
This not work, nor therefore modprobe:
root@box:/.../x86# modprobe eeepc-laptop
modprobe: can't load module eeepc-laptop (kernel/drivers/platform/x86/eeepc-laptop.ko.gz): unknown symbol in module, or unknown parameter
???
-
does "modinfo eeepc-laptop" show any dependent modules?
-
root@box:/lib/modules/2.6.33.3-tinycore/kernel/drivers/platform/x86# modinfo eeepc-laptop
filename: eeepc-laptop
but I think something is not right because if I try a module at random, I have the same result:
root@box:/lib/modules/2.6.33.3-tinycore/kernel/drivers/platform/x86# modinfo supertcpc
filename: supertcpc
-
Last lines of dmesg please. I also recall the eee module depended on some extensions, maybe it was hwmon.
-
Looks like there might be a typo in those instructions...
sed -e 's!\x1a\x0\x0\x0\x98!\x1a\x0\x0\x0\x99!' eeepc-laptop.ko.orig > eeepc-laptop.ok
ko != ok
double entendre intended :P
-
Last lines of dmesg please. I also recall the eee module depended on some extensions, maybe it was hwmon.
I did not know which side to take and I put everything: http://nopaste.info/0aa903419b.html
ko != ok
Ok i correct this passage but i have the same result:
root@box:/.../x86# gunzip ./eeepc-laptop.ko.gz
root@box:/.../x86# cp eeepc-laptop.ko eeepc-laptop.ko.orig
root@box:/.../x86# sed -e 's!\x1a\x0\x0\x0\x98!\x1a\x0\x0\x0\x99!' eeepc-laptop.ko.orig > eeepc-laptop.ko
root@box:/.../x86# rmmod eeepc-laptop
rmmod: can't unload 'eeepc_laptop': unknown symbol in module, or unknown parameter
root@box:/.../x86# modprobe eeepc-laptop
modprobe: can't load module eeepc-laptop (kernel/drivers/platform/x86/eeepc-laptop.ko.gz): No such file or directory
root@box:/.../x86# modinfo eeepc-laptop
filename: eeepc-laptop
root@box:/.../x86#
-
You forgot to re-gzip it.
-
root@box:/.../x86# gzip eeepc-laptop.ko
root@box:/.../x86# rmmod eeepc-laptop
rmmod: can't unload 'eeepc_laptop': unknown symbol in module, or unknown parameter
root@box:/.../x86# modprobe eeepc-laptop
modprobe: can't load module eeepc-laptop (kernel/drivers/platform/x86/eeepc-laptop.ko.gz): unknown symbol in module, or unknown parameter
root@box:/lib/modules/2.6.33.3-tinycore/kernel/drivers/platform/x86#
:o
-
Sorry, last dmesg lines *after* trying to modprobe it and seeing the unknown symbol message.
-
sorry for the time but I've been a bit busy:
http://nopaste.info/63d5a86305.html
I found this dmesg in tiny core sistem stat gui
-
Try loading the hwmon and pci-hotplug extensions, and try again.
-
After installation of hwmon and pci-hotplug:
root@box:/lib/modules/2.6.33.3-tinycore/kernel/drivers/platform/x86# rmmod eeepc
-laptop
rmmod: can't unload 'eeepc_laptop': unknown symbol in module, or unknown parameter
root@box:/lib/modules/2.6.33.3-tinycore/kernel/drivers/platform/x86# modprobe ee
epc-laptop
modprobe: can't load module eeepc-laptop (kernel/drivers/platform/x86/eeepc-laptop.ko.gz): No such device