Advertisement
PAULARMEN

How to set resolution with xrandr

Apr 12th, 2025
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. Hi Jonathon
  2.  
  3. Hey! Thanks for the pics and rundown. You're doing great getting that older HP Pavilion Elite e9270f set up with Pop!_OS, especially with the hardware mix you've got. Based on what I see:
  4.  
  5.  
  6. โœ… Summary of your setup:
  7. - **Monitor recommends**: 2560x1080 @ 60Hz (ultrawide)
  8. - **Current resolution**: 1920x1080 @ 60Hz
  9. - **Display options in GNOME**: Only go up to 1920x1080
  10. - **GPU**: AMD RV730 (aka Radeon HD 4650/4670 series)
  11. - **OS**: Pop!_OS 22.04 LTS (X11 session)
  12.  
  13. ๐Ÿšจ The issue:
  14. Pop!_OS isnโ€™t detecting your ultrawide resolution โ€” despite `xrandr` indicating it should be possible โ€” probably due to:
  15. - The **RV730 GPU being old** and limited in supported modes on modern drivers
  16. - **Missing EDID info over HDMI**
  17. - Or needing a **manual `xrandr` modeline** to force the correct resolution
  18.  
  19. ๐Ÿ› ๏ธ Fix: Add custom resolution with `xrandr`
  20. Letโ€™s manually add the correct resolution.
  21.  
  22. 1. **Generate a modeline** for 2560x1080 @ 60Hz:
  23.  
  24. cvt 2560 1080 60
  25.  
  26. Example output:
  27.  
  28. Modeline "2560x1080_60.00" 230.00 2560 2608 2640 2720 1080 1083 1088 1120 -hsync +vsync
  29.  
  30. 2. **Add the mode to your display**:
  31. First, find your display name:
  32.  
  33. xrandr
  34.  
  35. Youโ€™ll see something like `HDMI-1` or `HDMI-A-0`.
  36.  
  37. Then add the mode:
  38.  
  39. xrandr --newmode "2560x1080_60.00" 230.00 2560 2608 2640 2720 1080 1083 1088 1120 -hsync +vsync
  40. xrandr --addmode HDMI-1 "2560x1080_60.00"
  41. xrandr --output HDMI-1 --mode "2560x1080_60.00"
  42.  
  43. (Replace `HDMI-1` with your actual output name.)
  44.  
  45. ๐Ÿ“Œ Make it permanent:
  46. To make this apply at boot:
  47.  
  48. 1. Create a `.xprofile` in your home directory:
  49.  
  50. nano ~/.xprofile
  51.  
  52. 2. Add:
  53.  
  54. xrandr --newmode "2560x1080_60.00" 230.00 2560 2608 2640 2720 1080 1083 1088 1120 -hsync +vsync
  55. xrandr --addmode HDMI-1 "2560x1080_60.00"
  56. xrandr --output HDMI-1 --mode "2560x1080_60.00"
  57.  
  58. 3. Save and reboot.
  59.  
  60. ๐Ÿ”Ž Extra tips:
  61. - If the mode doesn't display correctly, try other modelines from [Modeline Generator](https://arachnoid.com/modelines/).
  62. - If you dual-boot Windows and the display works fine there, the EDID is likely good โ€” just not interpreted properly in Linux.
  63.  
  64. Let me know what you get from `xrandr` and I can help tailor the commands exactly. Also happy to help set this up as a script if needed.
  65.  
  66. Paul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement