LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware-current on T61 (https://www.linuxquestions.org/questions/slackware-14/slackware-current-on-t61-613095/)

garrymhl 01-12-2008 11:06 AM

Slackware-current on T61
 
A very simple guide for t61
T61 64584UU
install slackware-current
installpkg grub, slackpkg
reboot

1 thinkpad_acpi
patch kernel for thinkpad_acpi
http://sourceforge.net/project/showf...roup_id=117042)
# make menuconfig
network card: Intel Pro/1000 Gigabit
sound card: Intel HD Audio


/etc/rc.d/rc.modules
/sbin/modprobe thinkpad_acpi brightness_enable=1,brightness_mode=3

/boot/grub/menu.lst
acpi_sleep=s3_mode resume=/dev/sda6
NO framebuffer(vga=xxx)

/etc/rc.d/rc.local
cat /sys/devices/platform/thinkpad_acpi/hotkey_recommended_mask >/sys/devices/platform/thinkpad_acpi/hotkey_mask
cat /sys/devices/platform/thinkpad_acpi/hotkey_recommended_mask > /proc/acpi/ibm/hotkey

install software
a) tpb, xosd (http://www.slackware.com/~alien/slackbuilds)
# installpkg tpb*.tgz xosd*.tgz
b) radeontool (http://fdd.com/software/radeon/)
# make; mv radeontool /usr/local/sbin/radeontool
c) tuxonice's hibernate script(http://www.tuxonice.net/)
# ./install.sh

/etc/tpbrc
CALLBACK /etc/acpi/tpb/tpb.sh
MIXER ON
XEVENTS OFF

/etc/rc.d/rc.local
/usr/bin/tpb -d

#mkdir /etc/acpi/tpb; ln -s /etc/acpi/acpi_handler.sh /etc/acpi/tpb/tpb.sh

reference
http://www.thinkwiki.org/wiki/ACPI_a...imized_for_R51

suspend to ram works

2 Battery
http://www.thinkwiki.org/wiki/Tp_smapi
download, make, make install

/etc/rc.d/rc.modules
/sbin/modprobe tp_smapi

/etc/rc.d/rc.local
# echo 40 > /sys/devices/platform/smapi/BAT0/start_charge_thresh
# echo 70 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh

3 4965 wireless
www.intellinuxwireless.org
download drivr & ucode, it works
I can only use wpa_supplicant, no iwpriv command works

4 graphic card
http://us.download.nvidia.com/XFree8...69.07-pkg1.run
# sh NVIDIA-Linux-x86-169.07-pkg1.run
/etc/X11/xorg.conf
Section "Monitor"
Identifier "Generic Monitor"
HorizSync 30.0 - 98.0
VertRefresh 50 - 160
DisplaySize 331 207
#tell X sever the real size of screen, unit mm
#96 dpi is not a standard
#use xdpyinfo to check
Option "DPMS" "true"
EndSection

5 SynPS/2 touchpad
http://web.telia.com/~u89404340/touchpad/
# git clone http://web.telia.com/~u89404340/touchpad/synaptics/.git
"insmod path_to/pamouse.ko" it works
"modprobe psmouse", it doesn't work
check /proc/bus/input/devices
it should be SynPS/2 Synaptics Touchpad, NOT PS/2 Synaptics Touchpad

xorg.conf
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
Option "LeftEdge" "1700"
Option "RightEdge" "5300"
Option "TopEdge" "1700"
Option "BottomEdge" "4200"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapTime" "180"
Option "MaxTapMove" "220"
Option "VertScrollDelta" "100"
Option "HorizScrollDelta" "100"
Option "MinSpeed" "0.09"
Option "MaxSpeed" "0.18"
Option "AccelFactor" "0.0015"
Option "SHMConfig" "on"
Option "TapButton1" "1"
Option "TapButton2" "2"
Option "TapButton3" "3"
EndSection

6 install software and change some settings
firefox flash plugin/adblock plus/CHM Reader
openoffice
alsaconf, alsamixer, alsactl store
comment ldconfig & fc-cache in rc.M
chmod -x rc.yp rc.nfsd
change settings for windowmaker
/usr/X11R6/bin/startx
defaultserverargs="-noliten tcp"

rc.local add
su - garry(it's unsafe, I'm lazy)

7 for chinese user only
/etc/profile.d/lang.sh
change locale to en_US.UTF-8

/etc/gtk-2.0/gtk.immodules
"xim" "X Input Method" "gtk20" "/usr/share/locale" "en:zh"

instal hwxh.ttf
cp hwxh.ttf /usr/share/fonts/TTF/
fc-cache

install fcitx

8 kvm setup
1)install gcc-3.4.6
2)http://sourceforge.net/project/showf...roup_id=180599
download kvm
make, make install
3)http://www.user-mode-linux.org/~blai...uml-utilities/
download uml_utilities_20060323
I only use tunctl
4)kvm & network bridge

modprobe kvm-intel
modprobe tun

tunctl -t tap0 -u username
ip addr flush eth0
ifconfig eth0 0.0.0.0 promisc
ifconfig tap0 0.0.0.0 promisc
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 tap0
dhclient br0

qemu-system-x86_64 -hda winxp.vmd -m 512 -net nic -net tap,ifname=tap0,script=no
#winxp.vmd is my client os image
#NO IP_FORWARD is needed, NO IP address to eth0 and tap0.
#http://kabru.eecs.umich.edu/bin/view/Main/KvmSetup is wrong
#client OS works with br0[eth0,tap0],not for br0[wlan0,tap0]

hemp4fuel 01-12-2008 11:54 AM

Thanks for this.

nsp 01-18-2008 04:50 AM

Well done. It's very brief.

Archer36 03-29-2008 04:41 PM

Sorry to bump this from way back when, but do the three audio buttons work properly? I can't seem to get mine to work. the TPB doesn't recognize them being pressed.

Yalla-One 03-29-2008 05:23 PM

Have you tried running `xev` while pressing the buttons to see if anything is registered in X ?

Archer36 03-29-2008 05:32 PM

Quote:

Originally Posted by Yalla-One (Post 3104498)
Have you tried running `xev` while pressing the buttons to see if anything is registered in X ?

Yes, it spits out some stuff when I press either of them.

Yalla-One 03-29-2008 05:44 PM

Excellent.
Please start xev again, and paste here what happens when you press a key, and what happens when you release a key.

Make sure not to move your mouse or touch other keys while running, as that will just poison the output and make it harder to digest what's what..

xev lists all the events to X, and is a great way to find out which keycode to look for, so that you can put it in your .Xmodmap and map it to mute, volume, lock or whatever..

-y1

Su-Shee 04-23-2008 10:51 AM

Just as an addition more or less the same steps, but on a Slackware 12:

* After regular installation, get a recent kernel - I got 2.6.24.4 a week or so ago.

In this kernel generation, you'll find

* thinkpad-acpi already included - enable everything
* the 802.11 stuff for wifi
* the intel 4965 device drivers

There's no need for patches anymore, but you'll still have to download and copy the firmware into Slackware's firmware directory.

* Nivida drivers work fine, just run the above mentioned install script of Nvidia's. I've wobbled some windows around with Compiz, seems to work either.

Despite of many reports about not working brightness controls and Thinklight (Fn+Key), it works right out of the box.

Volume buttons are an issue - after some googling the reason seems to be a confusion of pcm/microphone - instead of adjusting pcm, the buttons adjust the mic. No idea wether this is correct or not, but the volume buttons do send indeed X-events which can be captured and assigned. (Or they're simply adjusted by software instead of hardware... no idea...)

Example:

Volume down button sends the keycode (check with xev) 174. Assign it to "XF86AudioLowerVolume" in your .Xmodmap. Load it. Get the tool "xbindkeys" (Available as package on Slacky.eu, for example). Create a .xbindkeysrc and add a line as follows:

Code:

"aumix -w -10"
XF86AudioLowerVolume

And so on for the rest of the sound buttons. Start xbindkeys.

You can do the same stuff with KDE and Gnome shortcut bindings, but I personally hate desktop-specific solutions for such problems.

ACPI-stuff like suspend to RAM works nicely and so does on/off switching of Bluetooth.

The non-working wifi LED seems to be an intel driver bug.


All times are GMT -5. The time now is 07:37 PM.