Wallpaper too large on external monitor (SOLVED)

Moderator: Forum moderators

Post Reply
User avatar
gychang
Posts: 650
Joined: Fri Aug 28, 2020 4:51 pm
Location: San Diego, CA
Has thanked: 234 times
Been thanked: 73 times

Wallpaper too large on external monitor (SOLVED)

Post by gychang »

I am running Bionicpup64 (frugal install on internal SSD on sony laptop), hooked up to an external HDTV as a monitor using a HDMI cable. I have a script file to turn off laptop monitor and use external HDTV using command (xrandr --output LVDS-1 --off --output HDMI-1 --mode 1360x768 --rate 60.02 &) within a StartUp folder.

when I first boot the wallpapers, it do not display correctly (see fig). I have tried to delay start the script but does not correct the problem. I can only resolve the issue by resetting the background by JWMDesk menu.

How can I correct the display problem on boot? Is there a way to delay setting the chosen wallpaper?

screen.png
screen.png (270.2 KiB) Viewed 1003 times
Last edited by gychang on Mon Feb 22, 2021 4:20 am, edited 1 time in total.

======

Puppy Bytes, utube videos
https://www.youtube.com/channel/UCg-DUU ... u62_iqR-MA

======

User avatar
puddlemoon
Posts: 188
Joined: Sun Sep 06, 2020 9:26 pm
Location: In between
Has thanked: 89 times
Been thanked: 63 times

Re: Wallpaper too large on external monitor

Post by puddlemoon »

You could add a sleep as the first line.
e.g..

Code: Select all

#!/bin/sh
sleep 5
xrandr --output LVDS-1 --off --output HDMI-1 --mode 1360x768 --rate 60.02 &
User avatar
gychang
Posts: 650
Joined: Fri Aug 28, 2020 4:51 pm
Location: San Diego, CA
Has thanked: 234 times
Been thanked: 73 times

Re: Wallpaper too large on external monitor

Post by gychang »

adding the sleep 5 to the script does not correct the problem, but boots slower. Is there a way to reset the wallpaper after it boots?, as I stated if I go into JWMDesk setting and refresh the wallpaper then it corrects...

======

Puppy Bytes, utube videos
https://www.youtube.com/channel/UCg-DUU ... u62_iqR-MA

======

User avatar
PipzDex
Posts: 193
Joined: Sun Jul 12, 2020 11:16 pm
Location: Mexico
Has thanked: 62 times
Been thanked: 83 times

Re: Wallpaper too large on external monitor

Post by PipzDex »

Hi @gychang

quick questions

the screen resolution of the laptop and the external monitor is the same size?

the laptop can't change the resolution of the external monitor manually and save/keep the settings?

and finally, where's the script in your system....

I think can help you

Comment me

Cheers

Pentium (R) 2.20GHz I RAM: 8.0 GB I F96-CE_5 I Kernel 6.6.8-64oz-ao I Glibc: 2.31 I 1600x900 Px

My Puppy Stuff and more

User avatar
bigpup
Moderator
Posts: 7447
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 997 times
Been thanked: 1665 times

Re: Wallpaper too large on external monitor

Post by bigpup »

In JWMDesk->Background
Is the mode set to fit?

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
MochiMoppel
Posts: 1327
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 503 times

Re: Wallpaper too large on external monitor

Post by MochiMoppel »

@gychang Your laptop seems to have a higher resolution than your HDTV.
When you run your script that changes the display ROX-Filer has already loaded the background image according to the resolution when ROX-Filer started. Any changes you make to screen resolution or orientation will not be noticed by ROX-Filer unless you refresh its setting. You can do this with following script:

Code: Select all

#!/bin/bash
rox --RPC << EOF
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope">
 <env:Body xmlns="http://rox.sourceforge.net/SOAP/ROX-Filer">
  <SetBackdrop>
 <Filename>/usr/share/backgrounds/default.jpg</Filename>
  <Style>stretch</Style>
  </SetBackdrop>
 </env:Body>
</env:Envelope>
EOF

You could put this script into the /root/Startup folder, in any case after your HDTV script.
Note that the default image of Bionicpup64 is a huge 1500x2000px (= portrait!) image. Not very suitable, but not my problem. The dog has to be stretched to fill your landscape oriented screen, which happens to be the original setting in PuppyPin.

User avatar
gychang
Posts: 650
Joined: Fri Aug 28, 2020 4:51 pm
Location: San Diego, CA
Has thanked: 234 times
Been thanked: 73 times

Re: Wallpaper too large on external monitor

Post by gychang »

bigpup wrote: Mon Feb 22, 2021 1:10 am

In JWMDesk->Background
Is the mode set to fit?

"stretch" mode.

======

Puppy Bytes, utube videos
https://www.youtube.com/channel/UCg-DUU ... u62_iqR-MA

======

williams2
Posts: 1068
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 306 times

Re: Wallpaper too large on external monitor

Post by williams2 »

You can restart the rox pinboard (desktop icons and wallpaper)
by putting this line after the xrandr command in the script:

Code: Select all

rox -p /root/Choices/ROX-Filer/PuppyPin

You can rescale the wallpaper picture using mtpaint if you want (press PgUp key.)

The standard Puppy wallpaper pictures are in /usr/share/backgrounds/

If the pinboard icons on the right (lock,zip,trash) are not in the correct place,
you can add a fixPuppyPin command before the rox -p command in the script.

Last edited by williams2 on Mon Feb 22, 2021 4:23 am, edited 1 time in total.
User avatar
gychang
Posts: 650
Joined: Fri Aug 28, 2020 4:51 pm
Location: San Diego, CA
Has thanked: 234 times
Been thanked: 73 times

Re: Wallpaper too large on external monitor

Post by gychang »

MochiMoppel wrote: Mon Feb 22, 2021 3:12 am

@gychang Your laptop seems to have a higher resolution than your HDTV.
When you run your script that changes the display ROX-Filer has already loaded the background image according to the resolution when ROX-Filer started. Any changes you make to screen resolution or orientation will not be noticed by ROX-Filer unless you refresh its setting. You can do this with following script:

Code: Select all

#!/bin/bash
rox --RPC << EOF
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope">
 <env:Body xmlns="http://rox.sourceforge.net/SOAP/ROX-Filer">
  <SetBackdrop>
 <Filename>/usr/share/backgrounds/default.jpg</Filename>
  <Style>stretch</Style>
  </SetBackdrop>
 </env:Body>
</env:Envelope>
EOF

You could put this script into the /root/Startup folder, in any case after your HDTV script.
Note that the default image of Bionicpup64 is a huge 1500x2000px (= portrait!) image. Not very suitable, but not my problem. The dog has to be stretched to fill your landscape oriented screen, which happens to be the original setting in PuppyPin.

thanks for all information!. When I change to another wallpaper picture using JWMDesk-background app, after reboot, it reverts back to default dog photo. With your method can I change to another wallpaper?

another pup expert "norgo" sent me a PM and following script in StartUp folder works well and I can change the wallpaper. His script
==
#!/bin/sh

sleep 0.5s
[ -f $HOME/.config/wallpaper/bg_img ] && wpic=$(cat $HOME/.config/wallpaper/bg_img) || wpic="/usr/share/backgrounds/default.jpg"

[ -f "$wpic" ] && /usr/bin/wallpaper $wpic
==

Very helpful thanks again.

======

Puppy Bytes, utube videos
https://www.youtube.com/channel/UCg-DUU ... u62_iqR-MA

======

User avatar
MochiMoppel
Posts: 1327
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 503 times

Re: Wallpaper too large on external monitor

Post by MochiMoppel »

gychang wrote: Mon Feb 22, 2021 4:20 am

When I change to another wallpaper picture using JWMDesk-background app, after reboot, it reverts back to default dog photo. With your method can I change to another wallpaper?

Sure. Just change the file path accordingly.
BTW: This is not "my" method. It is the official method described in the ROX manual (see Appendix C. SOAP RPC)
It sets/changes the background of whatever pinboard you are currently using, so it works even if you are not using PuppyPin.

another pup expert "norgo" sent me a PM and following script in StartUp folder works well and I can change the wallpaper.

Looks like an unnecessary detour because the wallpaper application, after processing all its code, will at the end run the code that I posted.

Another official and easy method: Right-click any desktop icon and select "Backdrop" (second from last menu item). Here you can drop a new image and play with the different styles and see what effect they have. There is really no need to use JWMDesk for this task.

Lastly: What williams2 proposed should also work, provided you use PuppyPin, don't want to change the image or its style and don't mind the short flicker caused by this method

User avatar
gychang
Posts: 650
Joined: Fri Aug 28, 2020 4:51 pm
Location: San Diego, CA
Has thanked: 234 times
Been thanked: 73 times

Re: Wallpaper too large on external monitor

Post by gychang »

williams2 wrote: Mon Feb 22, 2021 3:58 am

You can restart the rox pinboard (desktop icons and wallpaper)
by putting this line after the xrandr command in the script:

Code: Select all

rox -p /root/Choices/ROX-Filer/PuppyPin

This works without needing another script. I have to manually edit the PuppyPin to change to another wallpaper?

thanks for the input.

======

Puppy Bytes, utube videos
https://www.youtube.com/channel/UCg-DUU ... u62_iqR-MA

======

williams2
Posts: 1068
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 306 times

Re: Wallpaper too large on external monitor (SOLVED)

Post by williams2 »

I have to manually edit the PuppyPin to change to another wallpaper?

No, you can right click any desktop icon and select "Backdrop" from the menu,
then drag the wallpaper picture file to the window.

Or, I think there might be a GUI program in the jwm menu to set the wallpaper.

User avatar
gychang
Posts: 650
Joined: Fri Aug 28, 2020 4:51 pm
Location: San Diego, CA
Has thanked: 234 times
Been thanked: 73 times

Re: Wallpaper too large on external monitor (SOLVED)

Post by gychang »

williams2 wrote: Mon Feb 22, 2021 6:17 pm

I have to manually edit the PuppyPin to change to another wallpaper?

No, you can right click any desktop icon and select "Backdrop" from the menu,
then drag the wallpaper picture file to the window.

got it!, thanks. :thumbup:

======

Puppy Bytes, utube videos
https://www.youtube.com/channel/UCg-DUU ... u62_iqR-MA

======

User avatar
MochiMoppel
Posts: 1327
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 22 times
Been thanked: 503 times

Re: Wallpaper too large on external monitor

Post by MochiMoppel »

gychang wrote: Mon Feb 22, 2021 6:04 pm

This works without needing another script.

All solutions discussed work without needing another script.

Post Reply

Return to “Bionic”