Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
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?


  Search this Thread
Old 07-12-2019, 01:52 PM   #1
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:

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:

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"
user1:~ # cat /etc/X11/xorg.conf.d/50-monitor.conf
Section "Monitor"
    Identifier "DSI-1"
    Option "Rotate" "right"
Old 07-13-2019, 12:39 PM   #2
Senior Member
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 1,574

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
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
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 3,870
Blog Entries: 1

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

$ xinput_calibrator

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


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
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 > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:36 PM.

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