Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Waveshare 7.9" DSI - 400x1280@60Hz
#24
@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
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
LVDS-1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
...


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
Reply


Messages In This Thread
RE: Waveshare 7.9" DSI - 400x1280@60Hz - by Nutul - 03-01-2023, 10:03 AM
RE: Waveshare 7.9" DSI - 400x1280@60Hz - by Nutul - 03-02-2023, 09:32 PM
RE: Waveshare 7.9" DSI - 400x1280@60Hz - by TheOldPresbyope - 03-03-2023, 08:58 PM

Forum Jump: