LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 13.1 on a netbook (asus eee 1005ha) (https://www.linuxquestions.org/questions/slackware-14/slackware-13-1-on-a-netbook-asus-eee-1005ha-811813/)

kernel-P4N1C 06-02-2010 08:43 PM

Slackware 13.1 on a netbook (asus eee 1005ha)
 
So far... so good
I love my netbook and the eye candy of kde... something else.

everything works out of the box... no need to configure anything... desktop effects are cool bl abl abla

BUT

an important fn key combo stopped working.
i can't disable the touch-pad to type and this is freaking me out. I've passed the last 3 days trying to get this working but no luck so far.

Alien bob eee-acpi packages are not doing the magic..
Archlinux eee-acpi seem to be complete...but they do not work..
I've followed woush howto and no luck either...


this netbook has a button top left corner that is supposed to kill the touchpad too... (not working)

I'm having a feeling that i'm not doing this correctly... so i came to you for help.

please advice

Ilgar 06-03-2010 01:31 AM

I have the same netbook and yes, it doesn't work (used to work fine with kernel 2.6.29 of Slackware 13.0). Upgrading to 2.6.34 didn't solve the problem either. Obviously something is broken in the (experimental) eeepc driver.

kernel-P4N1C 06-03-2010 07:29 AM

ok good
then i'm not going crazy.

belive me... this stupid thing has me sleepless.

kernel-P4N1C 06-10-2010 07:23 AM

I got a bigger hard drive for my netbook so i took the time to install arch linux on it as i was told their support for this laptop was way too good.

same issues after following their wikipage about this netbook. Fn+F3 doesn't work; neither the disable touchpad button on top left corner...

I wonder if the source code found on asus webpage does have the trick for this...

Chuck56 06-10-2010 07:58 AM

I had a similar problem with Slackware 13.0 on my AAO-D250-1417 netbook where the touchpad didn't respond to tap/click and a few of the function key combos didn't work.

http://www.linuxquestions.org/questi...1417-a-774261/

The touchpad was fixed with a HAL policy change and the function keys were fixed with xbindkeys. These were temporary solutions because after I upgraded to current, now 13.1, everything worked without needing either fix.

kernel-P4N1C 06-12-2010 05:45 PM

well
vertical scrolling works fine out of the box; but in windows (yes i refer to it) 2 finger tap emulates middle click and 3 finger tap emulates right click... I'm trying (actually failed miserably) to enable that feature as it won't wear down the tochpad buttons.

This is what works out of the box:

close lit suspend to ram or disk... not sure what it does but i have to wake the system up and type in my password

Fn+f1 <-------- sleep/suspend to ram (don't know exactly what it does... but it does it)
Fn+F5 <-------- decrease screen brightness works
Fn+F6 <-------- increase screen brightness works
Fn+F7 <-------- disable screen works


I've been unable to activate Fn+F3 (disable touchpad) or get a response from the silver button on top left corner for this purpose. I'm reading how to setup xbindkeys but nevertheless i can't get the imput for the Fn key..

anyhow, i've enabled the toggle touchpad as follows

using the win key (picked as Meta by kde) and F3 i call the following script
Code:

#!/bin/bash
# disable/enable touchpad
# get current state
SYNSTATE=$(synclient -l | grep TouchpadOff | awk '{ print $3 }')

# change state
if [ $SYNSTATE = 0 ]; then
    synclient touchpadoff=1
elif [ $SYNSTATE = 1 ]; then
    synclient touchpadoff=0
fi
exit 0

I don't know why acpi events/actions combo is not doing the magic for me... and i've spent some time reading about it as i know it is merely a scripting issue

I'm thinking into trying the customized xandros distro that asus has for download on this machine and check what/how they do it...
I'll be in touch if I find the time to do so

Chuck56 06-12-2010 06:20 PM

Quote:

Originally Posted by kernel-P4N1C (Post 4001531)
I'm reading how to setup xbindkeys but nevertheless i can't get the imput for the Fn key..

I left some notes in my rc.keys file that might provide some help:

Code:

#!/bin/sh
#
# /etc/rc.d/rc.keys
#
# use "showkey -s" in console to get scan codes
# use "showkey -k" in console to get key code
# use "getkeycodes" in console for entire key map
# use "xmodmap -pke" in X11 console for all mapped keys
# use "xev" in X11 console for X Window key codes

setkeycodes e020 113 # Mute/Unmute
setkeycodes e02e 114 # Decrease volume
setkeycodes e030 115 # Increase volume

YMMV!

kernel-P4N1C 06-12-2010 11:06 PM

is this setup for the 1005ha?

Chuck56 06-13-2010 08:05 AM

Quote:

Originally Posted by kernel-P4N1C (Post 4001727)
is this setup for the 1005ha?

No those are for the D250. I found the codes in the rc.keys file using the commands listed in the comment lines.

trumpet_tom 06-13-2010 10:27 AM

I'm also using Slackware 13.1 on the 1005ha. I used acpi_listen which returns 00000037 for both the touchpad toggle buttons. I was using Alien Bob's eeepc-acpi-scripts package so presumably could just add a few lines to the /etc/apci/actions/hotkey.sh file and use the lines mentioned by kernel-P4N1C above in a separate file. I gave this a try and it didn't do anything..in /var/log/messages I get things like this:
Code:

Jun 13 14:03:48 darkstar logger: ACPI group hotkey / action ATKD is not defined
so I've clearly done something wrong. Any ideas on how to modify the existing scripts or how to make my own to get this feature working?

kernel-P4N1C 06-14-2010 08:23 AM

@trumpet_tom
so far I haven't found a way to have these things running using acpi. I disable the touchpad by running the script (see previous post) and Meta+F3 on kde.

anyways, the beauty of slackware is precisely having to find your way to solve this kind of stupid issues.

trumpet_tom 06-14-2010 10:07 AM

Done it!

Make a file called /etc/acpi/events/touchpad-toggle (or call it whatever you want):
Code:

event=hotkey ATKD 00000037
action=/etc/acpi/actions/touchpad-toggle.sh

Make a second file called /etc/acpi/actions/touchpad-toggle.sh:
Code:

#!/bin/bash
#Toggle touchpad

SYNSTATE=$(su tom -c "synclient -l" | grep TouchpadOff | awk '{ print $3}')
# change state
if [ $SYNSTATE = 0 ]; then
            su tom -c "synclient touchpadoff=1"
elif [ $SYNSTATE = 1 ]; then
            su tom -c "synclient touchpadoff=0"
fi

All credit to kernel-P4N1C for that. Make sure to make this script executable (as root):
Code:

chmod +x /etc/acpi/actions/touchpad-toggle.sh
The key is to make sure the script is being run as the current user otherwise synclient doesn't work. So change all instances of "tom" to whatever your user name is, or better still make a flexible script that works it out for you. I am the only user on my netbook so I can't be bothered!

kernel-P4N1C 06-15-2010 09:39 AM

well
i did what you suggested and it didn't worked

acpi_listen show nothing when i do Fn+F3
i only have response for F6, F5 and F1 (fn+f7 turn off the screen but has no output on console) these are the one that works.

my console output
Fn+F1
Code:

weput@weput-netbook:~$ acpi_listen
button/sleep SLPB 00000080 00000002

Fn+F5
Code:

video LCDD 00000087 00000000
Fn+F6
Code:

video LCDD 00000086 00000000
i get the following when coming from hibernate
Code:

battery BAT0 00000081 00000001
ac_adapter AC0 00000081 00000000
processor CPU0 00000081 00000000
processor CPU1 00000081 00000000

2. I do not understand why you add the "su tom" on the script... either way it didn't worked.

trumpet_tom 06-15-2010 02:02 PM

I use "su tom" because if you try running xrandr as root it doesn't work. So you have to run xrandr as the currently logged in user, in my case "tom".

I'm finding that my script doesn't work until I restart acpid (/etc/rc.d/rc.acpid restart), dunno what that's about. Either way if acpi_listen isn't registering the key presses, that's a separate issue. Are you sure the eeepc_laptop module is loaded? I had to put a line in /etc/lilo.conf to make it work.
Code:

append = "acpi_osi=Linux"
otherwise have you tried running acpi_listen as root? maybe you're not a member of the right group.

keeperofdakeys 06-16-2010 01:17 AM

I have the same laptop, had the same issue, and made the same solution (although I still use 13.0).

My theory about why synclient won't load is that the driver is started with X, and when acpid initially runs it is 'not aware' of X. I used to do the same as you (restart acpi), but I found that I could unload the psmouse module (modprobe -r psmouse), which disabled the touchpad but allowed my usb mouse to continue functioning, then I reload when I want it back (modprobe psmouse).
Also something is wrong with my driver, so I have to use synclient guestmouseoff=0/1

Also the line you (and me) had to put into lilo is because of something in the kernel (although I don't need it for the generic .29 kernel that came with 13.0, only my compiled .32 version).

As an aside, I could give you some acpi scripts for volume, wireless and power management (auto cpu-scaling plus brightness, since I don't run a power manager).


All times are GMT -5. The time now is 01:53 PM.