03-02-2023, 10:25 PM
Thank you for your donation!
Problem: Waveshare 7.9" DSI - 400x1280@60Hz
|
03-02-2023, 10:57 PM
moOde simply reports the viewport size
Code: if (SESSION.json['pkgid_suffix'] == 'viewport') { And when Local Display starts the screen size is obtained by querying the frame buffer using the command below. Code: fbset -s | awk '$1 == "geometry" { print $2","$3 }'
03-03-2023, 01:39 AM
(03-02-2023, 10:57 PM)Tim Curtis Wrote: moOde simply reports the viewport size viewport.. is the key ... moodeaudio reading what is passed by driver....(?).. what is very strange that is in boot phase the orientation is rigth that let me think that the viewport configured as 400x1280 is right but is not like this...
03-03-2023, 08:58 PM
@AndromedaStrain
So you've been trying various approaches to changing the "orientation" of the contents of the framebuffer, which is close to bare metal. How about you instead try changing the orientation at the level of the Xserver? (Executing the .xinitrc script starts the Xserver with the local browser as its sole client.) Looking at the Waveshare installation code, I see it installs the KMS (Kernel Mode Settings) graphics driver (dtoverlay=vc4-kms-v3d in /boot/config.txt). By default, moOde installs instead the so-called Legacy graphics driver. You can consult the ever expanding compendium of Raspberry Pi documentation to see what different options and parameters apply to these two drivers, but first try the following. According to the docs, the xrandr command works with the KMS driver (and does not work with the Legacy driver, or at least it doesn't on my moOde 8.2.5 / Pi3B+ / 7-inch Touch Screen setup). Log into the command line on your Pi and, after the local display comes up on your Waveshare screen, try xrandr. If you see something like the following (this was on my Linux Mint laptop so pay no attention to the values) Code: me@T520:/boot$ xrandr then you're off to a good start. Now consult xrandr --help to see how to rotate the display. If this approach is successful then you can include it in the /home/pi/.xinitrc script. Regards, Kent |
« Next Oldest | Next Newest »
|