Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Thinkpad Module problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
hcweb
n00b
n00b


Joined: 18 Oct 2005
Posts: 4
Location: Puerto Rico

PostPosted: Sun Mar 05, 2006 3:15 am    Post subject: Thinkpad Module problems Reply with quote

The problem:
- Thinkpad module does not create /dev/thinkpad.
- I have read that this problems is related with udev rules.
- Some programs like tpctl doesnot complian but configure-thinkpad does.
- Suposily there is a fix but is temporary for every reboot, and some times does not work.(This fix is from the FC(RH) people)
Code:
  #mkdir --mode=755 /dev/thinkpad
  #mknod --mode=664 /dev/thinkpad/thinkpad c 10 170
  #chown root:thinkpad /dev/thinkpad/thinkpad
- Also added some alias (Dont know what the Do :( )
Code:
 Modules.d/Thinkpad
# modules.d configuration file for THINKPAD
# For more information please read:
#    README

options thinkpad enable_smapi=1 enable_superio=0 enable_rtcmosram=0 enable_thinkpadpm=0

alias char-major-10-170 thinkpad
alias /dev/thinkpad thinkpad
alias /dev/thinkpad/thinkpad thinkpad
alias /dev/thinkpad/smapi smapi
alias /dev/thinkpad/superio
alias /dev/thinkpad/rtcmosram  rtcmosram
alias /dev/thinkpad/thinkpadpm thinkpadpm

# Configurable module parameters
# ------------------------------
# enable_smapi:   Enable/disable (1/0) use of the smapi module
# enable_superio:   Enable/disable (1/0) use of the superio module
# enable_rtcmosram:   Enable/disable (1/0) use of the rtcmosram module
# enable_thinkpadpm:   Enable/disable (1/0) use of the thinkpadpm module (obsolete)
- Also some peole have problem compiling module (Theres also another link to this[/code].) (Solved by reinstaling gentoo in my pc.)
https://forums.gentoo.org/viewtopic-t-397877-highlight-error+thinkpad.html
Code:
/lib/modules/2.6.13-gentoo-r3/build/include/asm/smp.h:75:26: mach_apicdef.h: No such file or directory
In file included from /lib/modules/2.6.13-gentoo-r3/build/include/linux/smp.h:19,
from /lib/modules/2.6.13-gentoo-r3/build/include/linux/sched.h:26,
from /lib/modules/2.6.13-gentoo-r3/build/include/linux/module.h:10,
from thinkpad.c:42:
/lib/modules/2.6.13-gentoo-r3/build/include/asm/smp.h: In function `hard_smp_processor_id':
/lib/modules/2.6.13-gentoo-r3/build/include/asm/smp.h:79: warning: implicit declaration of function `GET_APIC_ID'
thinkpad.c:50:27: linux/wrapper.h: No such file or directory
thinkpad.c:105:41: missing binary operator before token "("
thinkpad.c: In function `thinkpad_ioctl':
thinkpad.c:245: warning: `inter_module_put' is deprecated (declared at /lib/modules/2.6.13-gentoo-r3/build/include/linux/module.h:573)
thinkpad.c:260: warning: `inter_module_put' is deprecated (declared at /lib/modules/2.6.13-gentoo-r3/build/include/linux/module.h:573)
thinkpad.c:275: warning: `inter_module_put' is deprecated (declared at /lib/modules/2.6.13-gentoo-r3/build/include/linux/module.h:573)
thinkpad.c:290: warning: `inter_module_put' is deprecated (declared at /lib/modules/2.6.13-gentoo-r3/build/include/linux/module.h:573)
make[1]: *** [thinkpad.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/thinkpad-4.8/work/thinkpad-4.8/2.6/drivers'
make: *** [all] Error 2
Affected Hardware :
- This problem is know to be in the Ibm T20,T21 and T22.

I any one have a solution, thanks alot.
Back to top
View user's profile Send private message
hcweb
n00b
n00b


Joined: 18 Oct 2005
Posts: 4
Location: Puerto Rico

PostPosted: Sun Mar 05, 2006 4:27 pm    Post subject: Update Reply with quote

By gues testing
- Found that configure-thinkpad uses the old thinkpadpm module.
- By putting this settings on your /etc/modules.d/thinkpad
Code:
 /etc/modules.d/thinkpad
# modules.d configuration file for THINKPAD
# For more information please read:
#    README

options thinkpad enable_smapi=1 enable_superio=1 enable_rtcmosram=1 enable_thinkpadpm=1

alias char-major-10-170 thinkpad
alias /dev/thinkpad thinkpad
alias /dev/thinkpad/thinkpad thinkpad
alias /dev/thinkpad/smapi smapi
alias /dev/thinkpad/superio
alias /dev/thinkpad/rtcmosram  rtcmosram
alias /dev/thinkpad/thinkpadpm thinkpadpm

# Configurable module parameters
# ------------------------------
# enable_smapi:   Enable/disable (1/0) use of the smapi module
# enable_superio:   Enable/disable (1/0) use of the superio module
# enable_rtcmosram:   Enable/disable (1/0) use of the rtcmosram module
# enable_thinkpadpm:   Enable/disable (1/0) use of the thinkpadpm module (obsolete)

- This will solve the problem forn a lot of ibm thinkpad users.
- It know creates /dev/thinkpad and /dev/thinkpad but suspend to ram in configure thinkpad gives error system is invalid
Any help is apreciated
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum