WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: rearrange a piece of guide in tinycore  (Read 8102 times)

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
rearrange a piece of guide in tinycore
« 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.
Code: [Select]
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?
« Last Edit: February 11, 2011, 10:46:54 AM by vinnie »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: rearrange a piece of guide in tinycore
« Reply #1 on: February 11, 2011, 12:59:36 AM »
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.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: rearrange a piece of guide in tinycore
« Reply #2 on: February 11, 2011, 10:46:36 AM »
Ugh, a binary hack. That might or might not work.

Anyway, did you gunzip the module before doing that?
The only barriers that can stop you are the ones you create yourself.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: rearrange a piece of guide in tinycore
« Reply #3 on: February 11, 2011, 11:46:03 AM »
Gunzip is installed and working, but I had not unpacked, this time I did.
I also installed sed.tcz for safety

Code: [Select]
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

Code: [Select]
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:

Code: [Select]
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

 ???

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: rearrange a piece of guide in tinycore
« Reply #4 on: February 11, 2011, 01:26:12 PM »
does "modinfo eeepc-laptop" show any dependent modules?

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: rearrange a piece of guide in tinycore
« Reply #5 on: February 11, 2011, 01:36:36 PM »
Code: [Select]
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:
Code: [Select]
root@box:/lib/modules/2.6.33.3-tinycore/kernel/drivers/platform/x86# modinfo supertcpc
filename:       supertcpc

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: rearrange a piece of guide in tinycore
« Reply #6 on: February 11, 2011, 02:16:14 PM »
Last lines of dmesg please. I also recall the eee module depended on some extensions, maybe it was hwmon.
The only barriers that can stop you are the ones you create yourself.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: rearrange a piece of guide in tinycore
« Reply #7 on: February 11, 2011, 02:25:29 PM »
Looks like there might be a typo in those instructions...
Code: [Select]
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
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: rearrange a piece of guide in tinycore
« Reply #8 on: February 11, 2011, 03:40:08 PM »
Quote from: curaga
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

Quote from: tinypoodle
ko != ok

Ok i correct this passage but i have the same result:
Code: [Select]
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#
« Last Edit: February 11, 2011, 03:44:01 PM by vinnie »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: rearrange a piece of guide in tinycore
« Reply #9 on: February 11, 2011, 04:25:34 PM »
You forgot to re-gzip it.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: rearrange a piece of guide in tinycore
« Reply #10 on: February 11, 2011, 04:40:33 PM »
Code: [Select]
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

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: rearrange a piece of guide in tinycore
« Reply #11 on: February 12, 2011, 02:42:16 AM »
Sorry, last dmesg lines *after* trying to modprobe it and seeing the unknown symbol message.
The only barriers that can stop you are the ones you create yourself.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: rearrange a piece of guide in tinycore
« Reply #12 on: February 13, 2011, 12:07:57 PM »
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

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: rearrange a piece of guide in tinycore
« Reply #13 on: February 13, 2011, 12:28:39 PM »
Try loading the hwmon and pci-hotplug extensions, and try again.
The only barriers that can stop you are the ones you create yourself.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: rearrange a piece of guide in tinycore
« Reply #14 on: February 13, 2011, 01:51:35 PM »
After installation of hwmon and pci-hotplug:
Code: [Select]
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