Spannermaster
Posts: 4
Joined: Mon Jul 19, 2021 8:07 pm

Official 7” touchscreen panning

Mon Jul 19, 2021 8:19 pm

Trying to set up panning using xrandr. When I run xrandr I get an error message

Xrandr: failed to get size of gamma for output default
Screen 0: minimum 800 x 480, current 800 x 480, maximum 800 x 480
default connected 800 x 480+0+0 Omm x 0mm

It’s not recognizing the DSI display. Any thoughts on this?

aBUGSworstnightmare
Posts: 3451
Joined: Tue Jun 30, 2015 1:35 pm

Re: Official 7” touchscreen panning

Tue Jul 20, 2021 11:27 am

Spannermaster wrote:
Mon Jul 19, 2021 8:19 pm
Trying to set up panning using xrandr. When I run xrandr I get an error message

Xrandr: failed to get size of gamma for output default
Screen 0: minimum 800 x 480, current 800 x 480, maximum 800 x 480
default connected 800 x 480+0+0 Omm x 0mm

It’s not recognizing the DSI display. Any thoughts on this?
Make sure you have FKMS enabled! Check your config.txt to see that it has below command under uncommented:

Code: Select all

[all]
dtoverlay=vc4-fkms-v3d
.../code]

Spannermaster
Posts: 4
Joined: Mon Jul 19, 2021 8:07 pm

Re: Official 7” touchscreen panning

Tue Jul 20, 2021 6:32 pm

Make sure you have FKMS enabled! Check your config.txt to see that it has below command under uncommented:
Code: Select all

[all]
dtoverlay=vc4-fkms-v3d
.../code]
Thanks so much. This worked great. Now if i could get the touch screen to work properly with viewport panning it would be awesome.

aBUGSworstnightmare
Posts: 3451
Joined: Tue Jun 30, 2015 1:35 pm

Re: Official 7” touchscreen panning

Wed Jul 21, 2021 5:21 am

Spannermaster wrote:
Make sure you have FKMS enabled! Check your config.txt to see that it has below command under uncommented:
Code: Select all

[all]
dtoverlay=vc4-fkms-v3d
.../code]
Thanks so much. This worked great. Now if i could get the touch screen to work properly with viewport panning it would be awesome.
never texted --panning [widthxheight] but --scale works like a charm, see i.e. here viewtopic.php?f=108&t=296184&p=1887406#p1887406

So, for considering the 7in DSI display should pan a Full-HD monitor connected to HDMI I would try using below command

Code: Select all

xrandr --output DSI-1 --panning 1920x1080 
as I'm interrested to see if it's working I will test later today on FKMS and KMS and reportback
.

aBUGSworstnightmare
Posts: 3451
Joined: Tue Jun 30, 2015 1:35 pm

Re: Official 7” touchscreen panning

Wed Jul 21, 2021 6:11 am

aBUGSworstnightmare wrote:
Wed Jul 21, 2021 5:21 am
So, for considering the 7in DSI display should pan a Full-HD monitor connected to HDMI I would try using below command

Code: Select all

xrandr --output DSI-1 --panning 1920x1080 
Note: tried this under KMS.
NOT WORKING! and the OS is no longer booting with both displays attached.

As long as nobody from RPT confirms panning has been tested/working I can only say use at own risk!

After issuing the command 'xrandr --output DPI-1 --panning 1920x1080 ' the smaller screen was showing the upper left coner of the HDMI display, but not the area around the mouse pointer. Rebooting did not work as the boot process got stucked somewhere. Disconnecting HDMI display lead to a 'normal' booting system (not checked which issues persists).

Testing with FKMS it didn't work either!
Took some screenshots to illustrate what desktop looks like. Unscaled images are here https://drive.google.com/drive/folders/ ... sp=sharing
2021-07-21-075850_1920x1920_scrot Kopie.jpg
FKMS screen configuration after issuing --panning command
2021-07-21-075850_1920x1920_scrot Kopie.jpg (54 KiB) Viewed 911 times
2021-07-21-080134_1080x1920_scrot Kopie.jpg
FKMS screen configuration after rebooting
2021-07-21-080134_1080x1920_scrot Kopie.jpg (39.24 KiB) Viewed 911 times

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 11621
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Official 7” touchscreen panning

Wed Jul 21, 2021 9:54 am

I've never looked into how panning is implemented, so can't really make any helpful contribution at this point - sorry. Lots on my plate at present, but I'll try to have a look.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Spannermaster
Posts: 4
Joined: Mon Jul 19, 2021 8:07 pm

Re: Official 7” touchscreen panning

Mon Jul 26, 2021 3:16 pm

How would i run this command automaticly on start up???

aBUGSworstnightmare
Posts: 3451
Joined: Tue Jun 30, 2015 1:35 pm

Re: Official 7” touchscreen panning

Mon Jul 26, 2021 4:00 pm

Spannermaster wrote:
Mon Jul 26, 2021 3:16 pm
How would i run this command automaticly on start up???
why do you want to add a non-working command?
And what about asking google 'how to run xrandr commands at startup'?

Spannermaster
Posts: 4
Joined: Mon Jul 19, 2021 8:07 pm

Re: Official 7” touchscreen panning

Mon Jul 26, 2021 4:59 pm

It works great for me running on fkms. I have tried Google and its a bit confusing. I am kind of a noob at raspberry pi, but I am learning a whole bunch thanks to peoples generious help.

aBUGSworstnightmare
Posts: 3451
Joined: Tue Jun 30, 2015 1:35 pm

Re: Official 7” touchscreen panning

Mon Jul 26, 2021 6:19 pm

Spannermaster wrote:
Mon Jul 26, 2021 4:59 pm
It works great for me running on fkms. I have tried Google and its a bit confusing. I am kind of a noob at raspberry pi, but I am learning a whole bunch thanks to peoples generious help.
what is 'it'? Requested was --panning by you, I've explained how to use --scale and tested non-working --panning.
Means precise feedback is always welcome as others here - including me - need/want to understand as well.

In case --panning is working at your end - under FKMS - I would like to know more details in order to figure out why it's not working here for me.
As said, --scale is working like a charm in FKMS as well as KMS, but it's a totally different thing.
There might be other xrandr options which have not been tested and my/may not be working....

Return to “Official Foundation Display”