Hi there!
Is it possible to set the screen resolution from within Pd in Debian (with or without externals)? If yes how?
My problem is that some older mainboards automatically default to "1280x1024". If I set the screen size in /etc/X11/xorg.conf to "1920x1080" it still shows everything with the lower "1280x1024" resolution. It actually doesn't respond to setting it to a lower resolution either . . .
Not sure if I would need different graphic drivers for that. I'm on Debian-9.5.0-i386.
Thank you! Ingo
Hi Ingo
On Tue, 2021-01-12 at 05:46 +0100, Ingo wrote:
Is it possible to set the screen resolution from within Pd in Debian (with or without externals)?
Yes.
If yes how?
With something like (untested example specific to my setup):
[xrandr --output eDP-1 --mode "1920x1080_60.00"( | [ggee/shell]
My problem is that some older mainboards automatically default to "1280x1024". If I set the screen size in /etc/X11/xorg.conf to "1920x1080" it still shows everything with the lower "1280x1024" resolution. It actually doesn't respond to setting it to a lower resolution either . . .
That problem is orthogonal to the question of "How can I change screen resolution with Pd?". Above answer assumes you're able to change screen resolutions with normal tools. If they fail, the Pd solution will fail too.
Not sure if I would need different graphic drivers for that. I'm on Debian-9.5.0-i386.
I don't know, probably not. I experienced a few times, that only very few modes were listed by default, but modes added manually would work, too.
See: https://wiki.archlinux.org/index.php/xrandr#Adding_undetected_resolutions
Roman
On 1/12/21 10:22 AM, Roman Haefeli wrote:
With something like (untested example specific to my setup):
[xrandr --output eDP-1 --mode "1920x1080_60.00"( | [ggee/shell]
while this might work, i'm not so sure it's the right approach.
from the problem description, i assume that you are actually trying to setup some autostart for an installation or similar.
if this is the case: why don't you just set the screen resolution with the startup script? wouldn't you expect the screen to have the proper resolution *before* starting Pd?
most likely you have a startup script that launches Pd with the proper patch. you can add arbitrary commands to that script, e.g.:
#!/bin/sh
xrandr --output eDP-1 --mode "1920x1080_60.00"
echo "starting Pd" | logger
cd /home/rpi/installation
pd -noadc _MAIN.pd
echo "Pd exited" | logger
gmdsar IOhannes
Thanks, IOhannes!
Those units being treated like hardware synth boxes which have a patch editor that needs to be set to 1920x1080 to work correctly. My problem is that neither xrandr nor the /etc/X11/xorg.conf is working on the older mainboards for some strange reason.
Ingo
-----Original Message----- From: Pd-list [mailto:pd-list-bounces@lists.iem.at] On Behalf Of IOhannes m zmölnig Sent: Tuesday, January 12, 2021 12:53 PM To: pd-list@lists.iem.at Subject: Re: [PD] set screen resolution from within Pd (Linux)
On 1/12/21 10:22 AM, Roman Haefeli wrote:
With something like (untested example specific to my setup):
[xrandr --output eDP-1 --mode "1920x1080_60.00"( | [ggee/shell]
while this might work, i'm not so sure it's the right approach.
from the problem description, i assume that you are actually trying to setup some autostart for an installation or similar.
if this is the case: why don't you just set the screen resolution with the startup script? wouldn't you expect the screen to have the proper resolution *before* starting Pd?
most likely you have a startup script that launches Pd with the proper patch. you can add arbitrary commands to that script, e.g.:
#!/bin/sh xrandr --output eDP-1 --mode "1920x1080_60.00" echo "starting Pd" | logger cd /home/rpi/installation pd -noadc _MAIN.pd echo "Pd exited" | logger
gmdsar IOhannes
Thanks a lot, Roman!
I had found xrandr before and it works perfectly with my newer mainboards. Both the newer and older boards have onboard graphics.
However, when I try to find the display information with "xrandr -q" I get only "Can't open display" with no further information. "xrandr -q -v" gives me only the additional version number (1.3.4 with an old Ubuntu, 1.5.0 with Debian 9.5) of xrandr.
Maybe these older mainboards cannot connect to xrandr? The mainboards are about 10 years old. But xrandr must have been there before.
I'm suspecting that some graphics drivers are missing but I don't know which ones. I might have to check if there are any BIOS settings that keep these boards from communicating.
Ingo
-----Original Message----- From: Pd-list [mailto:pd-list-bounces@lists.iem.at] On Behalf Of Roman Haefeli Sent: Tuesday, January 12, 2021 10:23 AM To: pd-list@lists.iem.at Subject: Re: [PD] set screen resolution from within Pd (Linux)
Hi Ingo
On Tue, 2021-01-12 at 05:46 +0100, Ingo wrote:
Is it possible to set the screen resolution from within Pd in Debian (with or without externals)?
Yes.
If yes how?
With something like (untested example specific to my setup):
[xrandr --output eDP-1 --mode "1920x1080_60.00"( | [ggee/shell]
My problem is that some older mainboards automatically default to "1280x1024". If I set the screen size in /etc/X11/xorg.conf to "1920x1080" it still shows everything with the lower "1280x1024" resolution. It actually doesn't respond to setting it to a lower resolution either . . .
That problem is orthogonal to the question of "How can I change screen resolution with Pd?". Above answer assumes you're able to change screen resolutions with normal tools. If they fail, the Pd solution will fail too.
Not sure if I would need different graphic drivers for that. I'm on Debian-9.5.0-i386.
I don't know, probably not. I experienced a few times, that only very few modes were listed by default, but modes added manually would work, too.
See: https://wiki.archlinux.org/index.php/xrandr#Adding_undetected_resolution s
Roman
On Tue, 2021-01-12 at 13:12 +0100, Ingo wrote:
However, when I try to find the display information with "xrandr -q" I get only "Can't open display" with no further information.
Are you logged in through SSH by any chance? If so, give us the full picture of what you are actually doing. And regarding IOhannes suggestions, maybe also describe your goal in more detail.
Roman
No SSH. Just a simple computer setup that does not give me the screen resolution that I need on some older hardwares . . . I don't actually have to use Pd for setting this up but I thought I'd give it a try since the xorg.conf didn't do the trick.
I know that the onboard graphics give me a full HD resolution and that the operating system does as well. Just not the two together!
-----Original Message----- From: Pd-list [mailto:pd-list-bounces@lists.iem.at] On Behalf Of Roman Haefeli Sent: Tuesday, January 12, 2021 1:20 PM To: pd-list@lists.iem.at Subject: Re: [PD] set screen resolution from within Pd (Linux)
On Tue, 2021-01-12 at 13:12 +0100, Ingo wrote:
However, when I try to find the display information with "xrandr -q" I get only "Can't open display" with no further information.
Are you logged in through SSH by any chance? If so, give us the full picture of what you are actually doing. And regarding IOhannes suggestions, maybe also describe your goal in more detail.
Roman