LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to configure xrandr properly? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-configure-xrandr-properly-4175603447/)

psyl0cke 04-08-2017 09:07 AM

How to configure xrandr properly?
 
Hey!

I'm a linux noob, but I've already used Ubuntu and Backtrack in the past. I installed Kali 64 bit 2016.2 with Windows 10 as dual boot. I could fix the gray and the black screen problems, but I can't get the solution to set the right screen resolution. I've searched on the net, but I'm perfectly lost.

If I run Kali with USB, it works properly. I see 1366x786 LVDS-1 is set and VGA-1, HDMI-1, DP-1 are disconnected.

But my main system shows:
xrandr -q
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1024 x 768, current 1024 x 768, maximum 1024 x 768
default connected 1024x768+0+0 0mm x 0mm
1024x768 76.00*

cvt 1366 768 60
# 1368x768 59.88 Hz (CVT) hsync: 47.79 kHz; pclk: 85.25 MHz
Modeline "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync

xrandr --newmode "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
xrandr: Failed to get size of gamma for output default

xrandr --output default --mode 1368x768_60.00 --gamma 0:0:0
xrandr: cannot find mode 1368x768_60.00

Please help me, I would like to use linux!

ferrari 04-09-2017 03:21 AM

It's likely that you have a framebuffer driver in use. Check Xorg.0.log for the active graphics driver. If unsure, run the following

Code:

egrep "LoadModule|UnloadModule" /var/log/Xorg.0.log
Post your graphics hardware details as well. Run
Code:

inxi -Gxz
or
Code:

/sbin/lspci -nnk|grep '\[03' -A3

ondoho 04-09-2017 04:01 AM

personally, i prefer to use a graphical frontend to xrandr, e.g. arandr (with drag'n'drop functionality :-).

psyl0cke 04-09-2017 04:58 AM

Information
 
1) egrep "LoadModule|UnloadModule" /var/log/Xorg.0.log
[ 32.357] (II) LoadModule: "glx"
[ 32.426] (II) LoadModule: "modesetting"
[ 32.436] (II) LoadModule: "fbdev"
[ 32.448] (II) LoadModule: "vesa"
[ 32.455] (II) LoadModule: "fbdevhw"
[ 32.456] (II) UnloadModule: "modesetting"
[ 32.456] (II) LoadModule: "fb"
[ 32.474] (II) LoadModule: "shadow"
[ 32.475] (II) UnloadModule: "vesa"
[ 34.618] (II) LoadModule: "libinput"

2) inxi -Gxz
Graphics: Card-1: Intel 3rd Gen Core processor Graphics Controller
bus-ID: 00:02.0
Card-2: NVIDIA GK208M [GeForce GT 720M] bus-ID: 01:00.0
Display Server: X.org 1.19.2 drivers: fbdev (unloaded: modesetting,vesa)
tty size: 80x24 Advanced Data: N/A for root

3) /sbin/lspci -nnk|grep '\[03' -A3
bash: /sbin/lspci: No such file or directory

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4) arandr
I installed arandr, it sees default instead of LVDS-1 too.

ferrari 04-09-2017 05:43 AM

The posted output confirms that the fbdev (basic framebuffer) driver is loaded. This limits the display resolution to 1024x768. I'm surprised that the nouveau driver was not loaded for this NVIDIA chipset. Are you using the 'nomodeset' boot parameter perhaps?
Code:

cat /proc/cmdline
I'm not familiar with NVIDIA hardware, but it may be that you can install the propriety 'nvidia' driver for this graphics card model. I'll leave others to advise further about that.

BTW, the lspci command is probably located somewhere else in your distro. If it is in the path, you could just do lspci....
Code:

lspci -nnk
although the inxi command has already given us the necessary information.

ferrari 04-09-2017 05:47 AM

Quote:

I'm a linux noob, but I've already used Ubuntu and Backtrack in the past. I installed Kali 64 bit 2016.2
Since you mentioned that you're inexperienced with Linux, I was surprised that you're using Kali. I'd choose something a little more mainstream such as Linux Mint as you're likely to get a better "new user experience" with it IMHO.

psyl0cke 04-09-2017 07:31 AM

Thanks for helping me out!
I could fix it.
The solution was that I removed nomodeset with verbose. :)
The Win2Grub works fine with no parameters or with "quiet splash".

I was using BackTrack for 2 years long, and it was the only installed OS on my notebook.
I shouldn't do complicated linux tasks, just use Internet and do programming - that is why I think that I'm still a noob.

Now I installed Kali because I'm doing a course which uses it.
I could do everything without Kali on Win10 during the course until now, but I felt I should use Kali for try out what the course does under Kali.

Thanks a lot for solving it! :)

Emerson 04-09-2017 07:48 AM

To "use internet" as root is a big no-no. I hope you created a user for your everyday tasks?

Shadow_7 04-09-2017 11:12 AM

$ xrandr --output LVDS-1 --mode 1366x768 --panning 1366x768 --primary --gamma 1:1:1 --brightness 1

That should be a close to "defaults" as necessary. You probably don't want 0:0:0 as that would be solid black.

$ xrandr --output HDMI-0 --brightness 0.65 --gamma 1.6:1.46:1.53

Is what I use for an HP IPS display that is quite horrid at 1:1:1.

ferrari 04-09-2017 01:34 PM

Quote:

Thanks for helping me out!
I could fix it.
The solution was that I removed nomodeset with verbose.
Glad to have been of help! :)

psyl0cke 04-10-2017 02:49 PM

Quote:

Originally Posted by Emerson (Post 5694727)
To "use internet" as root is a big no-no. I hope you created a user for your everyday tasks?

Yeah, I have one user, which can do sudo su.
Thanks for the idea. :)


All times are GMT -5. The time now is 01:28 AM.