Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-14-2017, 02:26 PM
|
#1
|
LQ Newbie
Registered: Apr 2017
Posts: 2
Rep:
|
How do I change my display to a higher resolution?
I am a newbie. My computer supports until 3840x2160, although in the Settings it is only up to 1024x768. Please tell me how to change it to a higher resolution. If there is something I need to post, please tell me.
|
|
|
04-14-2017, 02:39 PM
|
#2
|
Senior Member
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
|
Quote:
Originally Posted by momas
I am a newbie. My computer supports until 3840x2160, although in the Settings it is only up to 1024x768. Please tell me how to change it to a higher resolution. If there is something I need to post, please tell me.
|
If your using a NVIDIA based video card in your PC, you can use the following command (as root/superuser), to change it;
Code:
nvidia-xconfig --mode 1366x768
This will change it to 1366x768 screen resolution. Also you need the NVIDIA driver installed for this command to work.
Restart your PC, for changes to take effect.
Last edited by jsbjsb001; 04-14-2017 at 02:47 PM.
Reason: forgot "This will change it to 1366x768 screen resolution. Also you need the NVIDIA driver installed for this...." part.
|
|
|
04-14-2017, 03:08 PM
|
#3
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
$ xrandr
$ xrandr --output HDMI-0 --mode 3840x2160
Or whatever name your system calls it. HDMI1 and eDP1 for my hp stream 11. HDMI-0 for my gateway desktop. With multiple displays that command gets longer. Which you likely have since 1024x768 is the lowest common denominator of resolutions available on both displays.
$ xrandr --output HDMI1 --mode 1920x1080 --panning 1920x1080 --primary --output eDP1 --mode 1366x768 --panning 1920x1080+0+0
$ xbacklight -set 0%
$ xset dpms force off
$ xset -dpms s noblank s noexpose
For my hp stream 11 to an external display. With the extra lines to fully turn off the laptops LCD and always on the external display. Which I mostly use for youtube videos. While I do other stuff on the other machine.
|
|
|
04-14-2017, 03:11 PM
|
#4
|
LQ Newbie
Registered: Apr 2017
Posts: 2
Original Poster
Rep:
|
Quote:
Originally Posted by Shadow_7
$ xrandr
$ xrandr --output HDMI-0 --mode 3840x2160
Or whatever name your system calls it. HDMI1 and eDP1 for my hp stream 11. HDMI-0 for my gateway desktop. With multiple displays that command gets longer. Which you likely have since 1024x768 is the lowest common denominator of resolutions available on both displays.
$ xrandr --output HDMI1 --mode 1920x1080 --panning 1920x1080 --primary --output eDP1 --mode 1366x768 --panning 1920x1080+0+0
$ xbacklight -set 0%
$ xset dpms force off
$ xset -dpms s noblank s noexpose
For my hp stream 11 to an external display. With the extra lines to fully turn off the laptops LCD and always on the external display. Which I mostly use for youtube videos. While I do other stuff on the other machine.
|
I get this when I type :
#xrandr --output HDMI-0 --mode 3840x2160
xrandr: Failed to get size of gamma for output default
warning: output HDMI-0 not found; ignoring
root@debian:/home/rr# xrandr --output HDMI-0 --mode 1920x1080
xrandr: Failed to get size of gamma for output default
warning: output HDMI-0 not found; ignoring
#xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 1024 x 768, maximum 1024 x 768
default connected primary 1024x768+0+0 0mm x 0mm
1024x768 61.00*
800x600 61.00
640x480 60.00
|
|
|
04-14-2017, 03:12 PM
|
#5
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
There's arandr if you need more of a GUI approach. And depending on your environment you should be able to right mouse on the background and select properties or display or something to adjust your options. Although I found that lacking relative to xrandr for an ubuntu install I tried once.
The --primary on the previous post so when you full screened something it fills the larger display.
|
|
|
04-14-2017, 03:28 PM
|
#6
|
Senior Member
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,837
|
What is the make and model of your graphics card?
|
|
|
04-14-2017, 06:51 PM
|
#7
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
nvidia doesn't play that nice with xrandr it seems...
$ nvidia-xconfig
????? about the only option the proprietary driver gives you I guess. Otherwise --output 0 or --output "Screen 0" might yield results, although not unique and your list of options kind of suck so probably futile.
nvidia-driver: /usr/share/doc/nvidia-driver/html/xrandrextension.html
so... file:///usr/share/doc/nvidia-driver/html/xrandrextension.html
in a web browser might have additional information.
|
|
|
04-14-2017, 08:35 PM
|
#8
|
Senior Member
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,950
|
What does the screen support?
Do you have a 4K display?
|
|
|
04-14-2017, 08:51 PM
|
#9
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
If you type: without arguments, it will give you information you require to choose an existing output and what settings are available for that output. If you need to add a resolution will give you a modeline for use with xrandr to add the resolution.
You're probably specifying an output that doesn't exist, or maybe referring to it incorrectly. For instance, on my machine yields
Code:
bob@bob:~$ xrandr
Screen 0: minimum 320 x 200, current 1600 x 1200, maximum 8192 x 8192
LVDS-1 connected (normal left inverted right x axis y axis)
1366x768 60.01 +
1360x768 59.80 59.96
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
960x600 60.00
960x540 59.99
800x600 60.00 60.32 56.25
840x525 60.01 59.88
800x512 60.17
700x525 59.98
640x512 60.02
720x450 59.89
640x480 60.00 59.94
680x384 59.80 59.96
576x432 60.06
512x384 60.00
400x300 60.32 56.34
320x240 60.05
VGA-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 connected primary 1600x1200+0+0 (normal left inverted right x axis y axis) 408mm x 306mm
1600x1200 60.00*+
1280x1024 75.02 60.02
1280x960 60.00
1152x864 75.00
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 59.94
720x400 70.08
DP-1 disconnected (normal left inverted right x axis y axis)
So, even though there is only one HDMI output, it is called HDMI-1, not HDMI-0.
Last edited by AwesomeMachine; 04-14-2017 at 08:53 PM.
Reason: correction
|
|
|
04-15-2017, 12:31 AM
|
#10
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,312
|
Quote:
Originally Posted by momas
I am a newbie. My computer supports until 3840x2160, although in the Settings it is only up to 1024x768. Please tell me how to change it to a higher resolution. If there is something I need to post, please tell me.
|
In order to be seriously helpful we do need more information about your computer and the distribution you installed. Try this command:
If it works, paste its contents back here. If it doesn't, try this one:
Code:
lspci -nnk | grep -A3 VGA
If it works, paste its output, and tell us which distro you installed, and the text content of the titlebar of the settings window where you see your display limited to 1024x768.
Also tell us what kind of cable connects your PC to your display.
Attaching the file /var/log/Xorg.0.log here would be helpful as well.
|
|
|
All times are GMT -5. The time now is 12:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|