12 June 2013

Fedora problems with dual screen in KDE: screens don't stay set on reboot

Tremendous frustration with Fedora and dual screen in KDE. When I use the System Settings option to configure my displays it works fine until reboot, at which point the dual screen reverts to a clone mode. I've tried the UI options pretty exhaustively and it still won't set past a reboot.

As most Linux users do, I eventually resorted to the Terminal to get this fixed. Here are the steps I followed:

  1. Configure your settings as you would like them to be permanently using the System Settings UI
  2. Go to Terminal
  3. Get your current display settings: "xrandr"
    1. Make note of the graphics interfaces listed as "connected" and their positioning, resolution, refresh rates

      Hint: you can extract similar information from ~/.kde/share/config/krandrrc
  4. Go to /etc/X11
  5. Create a new shell script (e.g. "sudo nano fixKDEdisplay.sh")
    1. Enter the details as you would like them to be set, based on your current configuration in (3)
    2. In our example:
      ### For DisplayPort card (ATI Radeon H6450)
      xrandr --output DVI-0 --pos 0x0 --mode 1920x1200 --refresh 60.0
      xrandr --output DisplayPort-0 --pos 1920x0 --mode 1920x1200 --refresh 60.0
      xrandr --output DVI-0 --primary

      Hint: if you used the krandrrc file above, replace the \n with new lines instead
    3. Save and quit
  6. Make the script executable (e.g. "sudo chmod 755 fixKDEdisplay.sh")
  7. Now make sure this script runs on every startup by going to System Settings --> Startup and Shutdown
    1. Autostart
      1. Add Script
      2. Run On Pre-KDE startup
  8. "reboot" to make sure
  9. Problem solved!

1 comment:

Data Align said...

You did really good work. I really appreciate your new and different post. Please guys keep it up and share with us some unique post in the future

dell australia tech support contact number