Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 902361 Details for
Bug 1104789
Touchpad sensitivity changes dramatically when I plug in an external monitor
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Script to help manually fix pointerss
fix_input_scaling.py (text/x-python), 1.55 KB, created by
Abrahm Scully
on 2014-06-04 22:59:14 UTC
(
hide
)
Description:
Script to help manually fix pointerss
Filename:
MIME Type:
Creator:
Abrahm Scully
Created:
2014-06-04 22:59:14 UTC
Size:
1.55 KB
patch
obsolete
>#!/usr/bin/env python2 >import re >import subprocess > >screen_x = 0. >screen_y = 0. >primary_display_x = 0. >primary_display_y = 0. >SINGLE_MONITOR_TOUCHPAD_ACCEL_VEL_SCALING=12.5 > ># run xrandr >xrandr_output = subprocess.check_output(['xrandr', '--screen', '0']) > ># try to parse output >for line in iter(xrandr_output.splitlines()): > if re.match(r'^Screen 0: ', line): > m = re.search('current ([1-9][0-9]*) x ([1-9][0-9]*),', line) > screen_x = float(m.group(1)) > screen_y = float(m.group(2)) > elif re.match(r'eDP1 connected primary ', line): > m = re.search('eDP1 connected primary ([1-9][0-9]*)x([1-9][0-9]*)+.*', line); > primary_display_x = float(m.group(1)) > primary_display_y = float(m.group(2)) > ># >x_transform = primary_display_x/screen_x >y_transform = primary_display_y/screen_y >accel_vel_scaling = SINGLE_MONITOR_TOUCHPAD_ACCEL_VEL_SCALING/x_transform > >print("\n" > "# Please modify SINGLE_MONITOR_TOUCHPAD_ACCEL_VEL_SCALING in the script\n" > "# to match the single-monitor value for the touchpad's\n" > "# 'Device Accel Velocity Scaling' attribute.\n") >print("# Please replace TOUCHSCREEN_ID and TOUCHPAD_ID with their respective xinput ids.\n") > >print("xinput set-prop TOUCHSCREEN_ID 'Coordinate Transformation Matrix' {} 0.0 0.0 0.0 {} 0.0 0.0 0.0 1.0".format(x_transform, y_transform)) >print("xinput set-prop TOUCHPAD_ID 'Coordinate Transformation Matrix' {} 0.0 0.0 0.0 {} 0.0 0.0 0.0 1.0".format(x_transform, y_transform)) >print("xinput set-prop TOUCHPAD_ID 'Device Accel Velocity Scaling' {}".format(accel_vel_scaling))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1104789
: 902361 |
912393