The officially official Devuan Forum!

You are not logged in.

#1 2019-02-06 20:28:03

w3
Member
Registered: 2018-08-27
Posts: 10  

Miyo Modern: problem with external monitor

I have a notebook with the monitor defective, so I use an external VGA monitor.

With a convensional install of Devuan netinstall using the Pekwm window manager I manage the resolution of my VGA monitor and turn off the internal monitor of the Notebook with the following command colacado in /home/$USER/.pekwm/start

sh -c `xrandr --output VGA1 --mode 1600x900 --rate 60.00 --same-as LVDS1 --output LVDS1 --off` &

However I can not do the trick using Miyo Modern.

I tried this on:  ~ / .config / openbox / autostart

creating an lxrandr.desktop with this command following the creation standard of this file and putting in:
~ / .config / autostart /

Finally I created a ~ / .xinitrc file, since the default installation did not create one and put the command.

But nothing works. Something new for me to try?

Offline

#2 2019-02-06 22:06:46

MiyoLinux
Member
Registered: 2016-12-05
Posts: 825  

Re: Miyo Modern: problem with external monitor

Dual monitors is something I've never dealt with, so I may not have an answer. These are just guesses. If someone else has an answer, feel free to supply it. smile

Does xrandr show the other monitor?

Does running that command in the terminal work?

If so, have you tried putting the desktop application that you created in /etc/xdg/autostart ?

What about creating a script; such as...

!#/bin/sh
sc -c `xrandr --output VGA1 --mode 1600x900 --rate 60.00 --same-as LVDS1 --output LVDS1 --off`

...Mark it as executable, and place it in /usr/bin/ (as an example).

Then try adding the script to ~/.config/openbox/autostart

As an example, I'll use "external-monitor" as the name of the script, and it was placed in /usr/bin/.

/usr/bin/external-monitor &

I have been Devuanated, and my practice in the art of Devuanism shall continue until my Devuanization is complete. Until then, I will strive to continue in my understanding of Devuanchology, Devuanprocity, and Devuanivity.

Veni, vidi, vici vdevuaned. I came, I saw, I Devuaned. wink

Offline

#3 2019-02-06 22:36:59

ralph.ronnquist
Administrator
From: Clifton Hill, Victoria, AUS
Registered: 2016-11-30
Posts: 301  

Re: Miyo Modern: problem with external monitor

Are you sure it is sc -c ... and not sh -c .....
But then, why not have the command xrandr ... directly? What does sc do?

Offline

#4 2019-02-07 02:44:09

guuml.dev1
Member
Registered: 2018-12-09
Posts: 14  

Re: Miyo Modern: problem with external monitor

In addition to the answers of MiyoLinux and ralph.ronnquist:

w3 wrote:

I have a notebook with the monitor defective, so I use an external VGA monitor.
((snipped))
Finally I created a ~ / .xinitrc file, since the default installation did not create one and put the command.
((snipped))

IMHO the X server does right automagically in most cases (and miyolinux is a well supported distribution of devuan/ascii ;-)

MiyoLinux wrote:

Dual monitors is something I've never dealt with, ...

Now the gory details: According to ralph.ronnquist I don't understand sc -c ..., too. And it is hard to believe in the  need of ~ / .xinitrc. And I've never heard about "the Pekwm window manager" up to now, I believe in slim/xfce :-) Basically slim starts the X server with /var/log/Xorg.0.log, then xfce tooks the windows management, Then you will see errors in tail -f ~/.xsession-errors. To keep a long story short:

xrandr -q -v

is your friend. On MY laptop it looks like:

xrandr program version 1.5.0 devuan/ascii as of this writing
LVDS1 connected ... 1024x768 ... screen of laptop
VGA1 connected ... 1280x1024 ... external monitor

Initially (after 1st install) both screens show the same content.

BTW: I'm using both screens as one "Arbeitsfläche" with
xrandr  --output LVDS1 --primary --auto --rotate normal --pos 0x0 \
        --output VGA1            --auto --rotate normal --left-of LVDS1

According to the initial question: w3 needs to clone "LVDS1" to "VGA1" with one single xrandr-command. May man xrandr helps?


guuml is an abbrevation for ascii-aware gü
human beings call me Gü
Gü sets focus to devuan

Offline

#5 2019-02-07 03:38:35

w3
Member
Registered: 2018-08-27
Posts: 10  

Re: Miyo Modern: problem with external monitor

ralph.ronnquist wrote:

Are you sure it is sc -c ... and not sh -c .....
But then, why not have the command xrandr ... directly? What does sc do?

I wrote wrong. Correctly is sh -c

Offline

#6 2019-02-07 03:44:29

w3
Member
Registered: 2018-08-27
Posts: 10  

Re: Miyo Modern: problem with external monitor

According to the initial question: w3 needs to clone "LVDS1" to "VGA1" with one single xrandr-command. May man xrandr helps?

I need working this command in Miyo.

sh -c `xrandr --output VGA1 --mode 1600x900 --rate 60.00 --same-as LVDS1 --output LVDS1 --off` &

This command work fine for me in Devuan Netinstall using Pekwm

Offline

Board footer