LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-12-2019, 01:52 PM   #1
bodiesofeverest
LQ Newbie
 
Registered: Jul 2019
Posts: 1

Rep: Reputation: Disabled
Adjust touchscreen coordinates for 4:3 aspect ratio on a 16:10 screen


Hello I have kind of a weird device I've been working on lately. It is a tablet that has a native resolution of 800x1280, yes it is backwards. The display is in portrait mode and I have to make some xorg config edit to rotate the screen and rotate the touchscreen. This works great if I use the native resolution, however I am trying to get it to use a 768x1024 resolution. I have succeeded in getting the 768x1024 resolution in 4:3 mode (with black bars on the side, which is what I want) to show on the tablet by using these commands:

Code:
user1:~ # xrandr --newmode "768x1024_60.00"   65.25  768 816 896 1024  1024 1027 1037 1063 -hsync +vsync
user1:~ # xrandr --addmode DSI-1 768x1024_60.00
user1:~ # xrandr -s 768x1024_60.00
What I'm having trouble with is getting the actual touchscreen digitizer to align with it. Here are my xorg config files:

Code:
user1:~ # cat /etc/X11/xorg.conf.d/99-touchscreen.conf
Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "SwapAxes" "true"
        Option "InvertY" "true"
EndSection
Code:
user1:~ # cat /etc/X11/xorg.conf.d/50-monitor.conf
Section "Monitor"
    Identifier "DSI-1"
    Option "Rotate" "right"
EndSection
 
Old 07-13-2019, 12:39 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,878
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
Why are you mixing xrandr with xorg.conf*? Try using only one or the other. In *xorg.conf*, along with Rotate, use Horizsync, VertRefresh, PreferredMode and Section "InputClass" instead of xrandr modelines. Xorg computes modelines automatically when presented with appropriate specifications.
 
Old 07-14-2019, 02:38 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
$ x11-touchscreen-calibrator

$ xinput_calibrator

The later I've actually used (long ago on a pocketchip).
 
  


Reply



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
can't adjust aspect ratio after screen rotation Wannabegeek Linux - General 0 10-14-2004 01:45 PM
command line aspect ratio Fatal_3rr0r Linux - General 2 06-14-2003 07:47 PM
Mplayer & Ogle aspect ratio Johng Linux - Software 0 09-21-2002 05:24 AM
16:9 aspect ratio resolution possible? rikw Linux - Software 0 09-04-2001 09:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:47 PM.

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