LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-22-2020, 08:26 AM   #1
Jason_25
Member
 
Registered: Nov 2001
Posts: 180

Rep: Reputation: 23
Mouse becomes "trapped" in a box unless I use the xrandr scaling option


On my Cherry Trail PC stick I have noticed that the mouse cursor can not move across the entire screen. But if I use the scaling option in xrandr, for example, --scale 1x1.001 , the mouse becomes free. But this makes text look less clear. What could be the problem here?
 
Old 08-23-2020, 07:56 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,307
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
What OS is on this system?

Have you looked in the log files, particularly the /var/log/Xorg.?.log?
 
Old 08-24-2020, 08:41 PM   #3
Jason_25
Member
 
Registered: Nov 2001
Posts: 180

Original Poster
Rep: Reputation: 23
Devuan 2 "Ascii" is the OS but I am running a 4.9.x kernel for working sound on Cherry Trail devices.

This has been a really bad bug to troubleshoot. To clear up the boundary description, it seems to just make the cursor disappear not the logical pointer of the mouse itself. It is enough to make things feel confusing and buggy though. Additionally, this bug is present on "Right" and "Inverted" orientation at any resolution and not present on "Left" and "Normal" orientation.

Ultimately I found out that the "panning" option in xrandr should free the mouse up as well. It does work sometimes but only if the mouse has been parked in an expanded area beyond the previous or perhaps native resolution. To automate this and have the touchscreen (and mouse pointer) have full travel upon login I edited my startup script as follows. First I set my resolution and orientation and set an expanded viewing area with the panning option. Then I had xdotool move the mouse cursor into the expanded area. Then finally I set resolution and orientation again and set the panning option to 0x0.

This did not seem perfectly reliable across reboots but I think I have it now. It worked three times in a row after shutdown. I could not guarantee it will keep working though. I cannot tell you what the issue is directly but it should not be working like this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mouse trapped in wrong layer linuxUser247 Linux - Desktop 10 07-08-2020 05:05 PM
LXer: Tor becomes extra secure as .onion becomes Special-Use Domain Name LXer Syndicated Linux News 0 09-14-2015 07:00 PM
radeon and dual head, to xrandr or not to xrandr, that's the question i92guboj Linux - Desktop 1 06-17-2009 05:48 AM
Incorrect Mouse, Incorrect Keymap, and Trapped in X Kenji Miyamoto Debian 8 08-24-2005 02:42 PM
XF86Config - Trapped Mouse BenRichards Linux - Software 0 09-13-2004 09:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration