Thank you for your donation!


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


Problem: Waveshare 7.9" DSI - 400x1280@60Hz
#21
(02-26-2023, 06:10 PM)Patolog1964 Wrote: There is a button on the back of the display.

none...
Reply
#22
moOde simply reports the viewport size

Code:
if (SESSION.json['pkgid_suffix'] == 'viewport') {
    notify('viewport', window.innerWidth + 'x' + window.innerHeight, '10_seconds');
}

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 }'
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#23
(03-02-2023, 10:57 PM)Tim Curtis Wrote: moOde simply reports the viewport size

Code:
if (SESSION.json['pkgid_suffix'] == 'viewport') {
    notify('viewport', window.innerWidth + 'x' + window.innerHeight, '10_seconds');
}

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 }'

Dodgy 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...
Reply
#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


Forum Jump: