Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
04-07-2018, 02:53 PM
|
#1
|
LQ Newbie
Registered: Mar 2018
Distribution: Debian
Posts: 14
Rep: 
|
Trackpoint/Trackpoint center button scrolling doesn't work on an X230
(The one where you press it down then scroll with the trackpoint)
What do I have to edit/install to get this functionality working? This is on the live image but going to install it soon 
|
|
|
04-07-2018, 03:25 PM
|
#2
|
Senior Member
Registered: Apr 2016
Distribution: Slackware
Posts: 2,033
|
Try these commands. I have them in a window manager startup script:
Code:
input set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 200
|
|
1 members found this post helpful.
|
04-07-2018, 03:28 PM
|
#3
|
LQ Newbie
Registered: Mar 2018
Distribution: Debian
Posts: 14
Original Poster
Rep: 
|
Quote:
Originally Posted by montagdude
Try these commands. I have them in a window manager startup script:
Code:
input set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 200
|
Thanks, I'll try that out. Where would I put it in, let's say, Xfce/xfwm?
|
|
|
04-07-2018, 03:32 PM
|
#4
|
Senior Member
Registered: Apr 2016
Distribution: Slackware
Posts: 2,033
|
Just put it in a bash script, make it executable, and add it as a startup script. How that is done depends on the window manager. I'm guessing that Xfce has a way to do it graphically via its settings manager, but I'm not sure because I don't use it.
|
|
1 members found this post helpful.
|
04-07-2018, 03:50 PM
|
#5
|
LQ Newbie
Registered: Mar 2018
Distribution: Debian
Posts: 14
Original Poster
Rep: 
|
Quote:
Originally Posted by montagdude
Just put it in a bash script, make it executable, and add it as a startup script. How that is done depends on the window manager. I'm guessing that Xfce has a way to do it graphically via its settings manager, but I'm not sure because I don't use it.
|
I've tried figuring out how to do that but I can't. What do I have to edit/create specifically? With xfce it allows you to startup application but not a script.
|
|
|
04-07-2018, 04:39 PM
|
#6
|
Senior Member
Registered: Apr 2016
Distribution: Slackware
Posts: 2,033
|
Quote:
Originally Posted by nekoseam
I've tried figuring out how to do that but I can't. What do I have to edit/create specifically? With xfce it allows you to startup application but not a script.
|
Try creating a .desktop file to run your script and place it in ~/.config/autostart. As an example:
~/.config/autostart/touchpad_settings.desktop
Code:
[Desktop Entry]
Version=1.0
Type=Application
Name=Set touchpad
GenericName=Set touchpad
Comment=Applies touchpad settings
Categories=Utility;
TryExec=/path/to/touchpad/script
Exec=/path/to/touchpad/script
Edit the path above to the location of your script.
Have you tried running the script manually to make sure it allows you to scroll with the Trackpoint?
|
|
1 members found this post helpful.
|
04-07-2018, 05:03 PM
|
#7
|
LQ Newbie
Registered: Mar 2018
Distribution: Debian
Posts: 14
Original Poster
Rep: 
|
Quote:
Originally Posted by montagdude
Try creating a .desktop file to run your script and place it in ~/.config/autostart. As an example:
~/.config/autostart/touchpad_settings.desktop
Code:
[Desktop Entry]
Version=1.0
Type=Application
Name=Set touchpad
GenericName=Set touchpad
Comment=Applies touchpad settings
Categories=Utility;
TryExec=/path/to/touchpad/script
Exec=/path/to/touchpad/script
Edit the path above to the location of your script.
Have you tried running the script manually to make sure it allows you to scroll with the Trackpoint?
|
I created a .desktop file in autostart with nano and pasted the code in and saved but after logging out and in it didn't work.
|
|
|
04-07-2018, 05:08 PM
|
#8
|
Senior Member
Registered: Apr 2016
Distribution: Slackware
Posts: 2,033
|
Did you:
- Make the script executable
- Try running the script manually
... like I already said to do?
|
|
1 members found this post helpful.
|
04-07-2018, 05:13 PM
|
#9
|
LQ Newbie
Registered: Mar 2018
Distribution: Debian
Posts: 14
Original Poster
Rep: 
|
Quote:
Originally Posted by montagdude
Did you:
- Make the script executable
- Try running the script manually
... like I already said to do?
|
I don't know how to do that 
|
|
|
04-07-2018, 05:24 PM
|
#10
|
Senior Member
Registered: Apr 2016
Distribution: Slackware
Posts: 2,033
|
Let's back up. Forget the script for now. Open a terminal and paste in the the commands from post #2. Hit Enter. Check if Trackpoint scrolling works after doing that. If so, we'll work on the script afterwards.
|
|
1 members found this post helpful.
|
04-07-2018, 05:28 PM
|
#11
|
LQ Newbie
Registered: Mar 2018
Distribution: Debian
Posts: 14
Original Poster
Rep: 
|
Quote:
Originally Posted by montagdude
Let's back up. Forget the script for now. Open a terminal and paste in the the commands from post #2. Hit Enter. Check if Trackpoint scrolling works after doing that. If so, we'll work on the script afterwards.
|
Yes it works.
|
|
|
04-07-2018, 06:03 PM
|
#12
|
Senior Member
Registered: Apr 2016
Distribution: Slackware
Posts: 2,033
|
Okay, good. Then save this as ~/set_touchpad.sh:
Code:
#!/bin/bash
input set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 200
Then type:
Code:
chmod +x ~/set_touchpad.sh
to make it executable. Next, edit the paths in the .desktop file I posted previously to /home/username/set_touchpad.sh (where 'username' is replaced with your username). Open the settings GUI in Xfce that shows your startup applications. It should hopefully show touchpad_settings.desktop, or maybe the name in the .desktop file, "Set touchpad."
|
|
1 members found this post helpful.
|
04-07-2018, 06:25 PM
|
#13
|
LQ Newbie
Registered: Mar 2018
Distribution: Debian
Posts: 14
Original Poster
Rep: 
|
Quote:
Originally Posted by montagdude
Okay, good. Then save this as ~/set_touchpad.sh:
Code:
#!/bin/bash
input set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 1
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 2
xinput set-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 200
Then type:
Code:
chmod +x ~/set_touchpad.sh
to make it executable. Next, edit the paths in the .desktop file I posted previously to /home/username/set_touchpad.sh (where 'username' is replaced with your username). Open the settings GUI in Xfce that shows your startup applications. It should hopefully show touchpad_settings.desktop, or maybe the name in the .desktop file, "Set touchpad."
|
I'll try that and report back. By "input" you meant "xinput" right?
|
|
1 members found this post helpful.
|
04-07-2018, 06:35 PM
|
#14
|
Senior Member
Registered: Apr 2016
Distribution: Slackware
Posts: 2,033
|
Yes, sorry. Trying to copy and paste with my phone here.
Last edited by montagdude; 04-07-2018 at 06:38 PM.
|
|
1 members found this post helpful.
|
04-07-2018, 06:47 PM
|
#15
|
LQ Newbie
Registered: Mar 2018
Distribution: Debian
Posts: 14
Original Poster
Rep: 
|
Quote:
Originally Posted by montagdude
Yes, sorry. Trying to copy and paste with my phone here.
|
Thanks. It works
|
|
|
All times are GMT -5. The time now is 02:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|