Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: scale a screen: xrandr --scale-from, panning and transform

  1. #1
    Join Date
    Jun 2015
    Location
    Toulouse
    Posts
    133

    Default scale a screen: xrandr --scale-from, panning and transform

    Hello.

    My 15.6 screen is too large to use only standard 1366x768 resolution, so I want to scale it.

    Two different problems:

    * make it permanent between reboot

    * make kde understand it

    How to do is easy at first. xrandr have a (new?) option "--scale-from"

    Type
    Code:
    xrandr --output <displayname> --scale-from 1920x1080
    and your screen looks like it have 1920x1080 pixels. May be too small for your eyes, depending of your screen.

    You may need to add
    Code:
    --panning 1920x1080
    to allow full use of the new "screen size".

    This can be made only one line.

    But then it's not fancy, with large black "margin", and it do not survive a reboot



    Adding the line to .bashrc make it more permanent, but one may soon notice that kde do not ack the new pixel number and that plasmoid, for example, can't go in the black part.

    So, what I need is

    * first make it permanent.

    This will need one of several solutions: add it to a start script, or better add it to /etc/X11/xorg.conf.d files. But does this xorg version understand "option scale-from...", I couldn't test it yet, but google say no. The option should be some sort of --transform option, but I couldn't yet find which gives the same result as scale-from

    * then make it active *before* kde start or make kde understand it

    may be there is a kde option that makes the two things on one go?

    thanks for help
    jdd

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,708
    Blog Entries
    1

    Default Re: scale a screen: xrandr --scale-from, panning and transform

    Add your desired xrandr configuration to an 'autostart' script so that it executes when the user logs in...

    System Settings > Workspace > Startup and Shutdown > Autostart
    Last edited by deano_ferrari; 20-Nov-2017 at 17:49.

  3. #3
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    3,377
    Blog Entries
    1

    Default Re: scale a screen: xrandr --scale-from, panning and transform

    If you want xrandr to work globally, in Plasma as well as other sessions, you can put it in a script in /etc/X11/xinit/xinitrc.d/. I would attach my screenshot showing proof and details, but I can't find a way here that doesn't demand being shown via a web URL, so if jdd wants to see he can ask me to email it, or someone can explain how attaching is done here.

  4. #4
    Join Date
    Jun 2015
    Location
    Toulouse
    Posts
    133

    Default Re: scale a screen: xrandr --scale-from, panning and transform

    Quote Originally Posted by mrmazda View Post
    If you want xrandr to work globally, in Plasma as well as other sessions, you can put it in a script in /etc/X11/xinit/xinitrc.d/. I would attach my screenshot showing proof and details, but I can't find a way here that doesn't demand being shown via a web URL, so if jdd wants to see he can ask me to email it, or someone can explain how attaching is done here.
    for images, I had the same problem, but I used to use cjoint.com.

    I already tried the autostart kde system, it works for sclae, but not for panning, I dunno why

    In the past I happen to write my own init script, but was thinking it to be obsolete since systemd, I never (yet) had to write systemd units :-(

    I would be glad to have details, thanks
    jdd

  5. #5
    Join Date
    Jun 2015
    Location
    Toulouse
    Posts
    133

    Default Re: scale a screen: xrandr --scale-from, panning and transform

    I just tested to write the xrandr line in /etc/init.d/after.local, but this dont works (no result)

    jdd

  6. #6
    Join Date
    Jun 2015
    Location
    Toulouse
    Posts
    133

    Default Re: scale a screen: xrandr --scale-from, panning and transform

    Work in progress :-(

    I could add

    Code:
    Section "Monitor"
     Identifier "eDP1"
            VendorName "LCD Asus"
            HorizSync 31.0 - 84.0
            VertRefresh 56.0 - 77.0
            Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
            Option "panning" "1920x1080"
        Option "scale-from" "1920x1080"
    EndSection
    in /etc/X11/xorg.conf.d/50-monitor.conf

    with a curious result:

    * on the login screen (sddm), the panning works but not the scale (as expected). I read on the net than Option transform should works, but I don't know (yet) how to write it's parameters.
    * after login I get the standard (old) config, no pan, no scale.

    thanks
    jdd

  7. #7
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,708
    Blog Entries
    1

    Default Re: scale a screen: xrandr --scale-from, panning and transform

    Quote Originally Posted by jdd View Post
    I just tested to write the xrandr line in /etc/init.d/after.local, but this dont works (no result)

    jdd
    That won't work, since there is no X server running when it's executed, and even if there was it would need to be run from within the X-session as the session owner or the DISPLAY environment variable needs to be set.

  8. #8
    Join Date
    Jun 2015
    Location
    Toulouse
    Posts
    133

    Default Re: scale a screen: xrandr --scale-from, panning and transform

    continued...

    * on the login screen (sddm), the panning works but not the scale (as expected). I read on the net than Option transform should works, but I don't know (yet) how to write it's parameters.
    * after login I get the standard (old) config, no pan, no scale.
    * adding the xrandr line to .bashrc gives scaling but no panning!
    * adding the line to a script (~/bin/hires.sh) and running the script gives sclaling and panning

    but this panning is not seen by kde, so the desktop is still limited to a 1366x768 frame, the rest is black and do not respond to usual kde things

  9. #9
    Join Date
    Jun 2015
    Location
    Toulouse
    Posts
    133

    Default Re: scale a screen: xrandr --scale-from, panning and transform

    Quote Originally Posted by deano_ferrari View Post
    That won't work, since there is no X server running when it's executed, and even if there was it would need to be run from within the X-session as the session owner or the DISPLAY environment variable needs to be set.
    OK, I understand that.

    So, how can I start this after X runs, but before kde do. My goal is to have kde desktop on the full HD screen

    thanks
    jdd

  10. #10
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,708
    Blog Entries
    1

    Default Re: scale a screen: xrandr --scale-from, panning and transform

    Are you really just trying to achieve bigger icons, fonts etc?

    If so, this Plasma 5 "how to" video may be helpful to you
    https://www.youtube.com/watch?v=5Kz2E5Xy5tw

    Similar advice here for those with HiDPI displays...
    https://wiki.archlinux.org/index.php...ystem_settings

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •