Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian Stretch: Can't detect Dell U2417H Monitor

Need help with peripherals or devices?
Post Reply
Message
Author
bardsmanship
Posts: 3
Joined: 2017-12-26 14:17

Debian Stretch: Can't detect Dell U2417H Monitor

#1 Post by bardsmanship »

I dual-boot Windows 10 and Debian 9.3 (with the Gnome 3 DE) on my laptop, in different hard drives.
In Windows 10 my second screen, a Dell 24-inch monitor (U2417H) works perfectly. It is connected via a HDMI cable. In Debian however the screen isn't being detected.

Code: Select all

$ uname -rv
4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23)

Code: Select all

$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
I read in another thread that this might be related to NVIDIA's Optimus technology, so I read https://wiki.debian.org/NvidiaGraphicsDrivers and https://wiki.debian.org/Bumblebee, and first tried installing `bumblebee-nvidia` and `primus`, but that conflicted with the nouveau driver and led to me being unable to login until I purged all the `nvidia*` packages and `primus`. Then I tried installing `bumblebee` and `primus`, but that gave me the white screen of death (an error occurred, etc.) I also tried downloading and running the nvidia drivers directly but that borked my system too, so I had to get rid of it.

Code: Select all

$ lspci -nn | egrep -i "3d|display|vga"
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 530 [8086:191b] (rev 06)
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM204M [GeForce GTX 970M] [10de:1618] (rev a1)
I see a bunch of errors with dmesg:

Code: Select all

$ dmesg | grep nouveau
[    4.942847] nouveau: detected PR support, will not use DSM
[    4.942863] nouveau 0000:01:00.0: enabling device (0006 -> 0007)
[    4.943083] nouveau 0000:01:00.0: NVIDIA GM204 (124180a1)
[    5.117095] nouveau 0000:01:00.0: bios: version 84.04.85.00.1e
[    5.117351] nouveau 0000:01:00.0: disp: dcb 5 type 8 unknown
[    5.117371] nouveau 0000:01:00.0: firmware: failed to load nvidia/gm204/gr/sw_nonctx.bin (-2)
[    5.117371] nouveau 0000:01:00.0: Direct firmware load for nvidia/gm204/gr/sw_nonctx.bin failed with error -2
[    5.117373] nouveau 0000:01:00.0: gr: failed to load gr/sw_nonctx
[    5.117374] nouveau 0000:01:00.0: gr ctor failed, -2
[    5.117377] nouveau: probe of 0000:01:00.0 failed with error -2
I installed Debian 9.3 with non-free firmware, so I don't know why the nvidia firmware is failing to load.

I'm also getting a strange error about failing to load a "mouse" module. Am I even on the right track in thinking that this monitor detection problem has to do with my graphics card?

Is there anything else I should try next?

Code: Select all

$ optirun glxgears
[ 1664.165242] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Failed to load module "mouse" (module does not exist, 0)

[ 1664.165285] [ERROR]Aborting because fallback start is disabled.

steve_v
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1400
Joined: 2012-10-06 05:31
Location: /dev/chair
Has thanked: 79 times
Been thanked: 175 times

Re: Debian Stretch: Can't detect Dell U2417H Monitor

#2 Post by steve_v »

bardsmanship wrote:I'm also getting a strange error about failing to load a "mouse" module. Am I even on the right track in thinking that this monitor detection problem has to do with my graphics card?
I've never had anything to do with these odd powersaving setups, but the mouse driver is easy to solve - install xserver-xorg-input-mouse.
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Debian Stretch: Can't detect Dell U2417H Monitor

#3 Post by Head_on_a_Stick »

bardsmanship wrote:I read in another thread that this might be related to NVIDIA's Optimus technology, so I read https://wiki.debian.org/NvidiaGraphicsDrivers and https://wiki.debian.org/Bumblebee, and first tried installing `bumblebee-nvidia` and `primus`, but that conflicted with the nouveau driver and led to me being unable to login until I purged all the `nvidia*` packages and `primus`. Then I tried installing `bumblebee` and `primus`, but that gave me the white screen of death (an error occurred, etc.) I also tried downloading and running the nvidia drivers directly but that borked my system too, so I had to get rid of it.
I've never used Nvidia hardware but the advice on the Optimus page should be correct so perhaps try going through it again, carefully.

If you still have problems, post back detailing the _exact_ steps that you took so that we can spot any errors; please include the verbatim commands used and error messages received, thanks!

EDIT: your Intel video card may need the firmware-misc-nonfree package to work at it's best.
deadbang

bardsmanship
Posts: 3
Joined: 2017-12-26 14:17

Re: Debian Stretch: Can't detect Dell U2417H Monitor

#4 Post by bardsmanship »

Thanks steve_v and Head_on_a_Stick for your advice!

I ran the following as root to get rid of that mouse not found error in my first post.

Code: Select all

apt install xserver-xorg-input-mouse


Then I ran the following to install bumblebee and primus, and added root and my user to the bumblebee group, as detailed in https://wiki.debian.org/Bumblebee#Post-installation.

Code: Select all

sudo apt install bumblebee primus
sudo adduser $USER bumblebee
sudo adduser jiayi bumblebee
Then when running optirun, I see the following error:

Code: Select all

$ optirun glxgears
[ 1256.632378] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Unknown chipset: NV124

[ 1256.632412] [ERROR]Aborting because fallback start is disabled.
Then I powered off my laptop and started it again. I got to the GRUB loader and selected Debian, but this time I got to a black screen that printed only iwlwifi errors, such as:

Code: Select all

iwlwifi 0000:04:00.0: firmware: failed to load iwlwifi-7265D-26.ucode (-2)
iwlwifi 0000:04:00.0: firmware: failed to load iwlwifi-7265D-25.ucode (-2)
iwlwifi 0000:04:00.0: firmware: failed to load iwlwifi-7265D-24.ucode (-2)
iwlwifi 0000:04:00.0: firmware: failed to load iwlwifi-7265D-23.ucode (-2)
I don't think these are relevant since these firmwares don't actually exist, and besides, my WIFI works fine because when I installed Debian I included the iwlwifi firmware from experimental.

The problem is, this black screen with the iwlwifi errors is unresponsive. Even Alt-Print Screen + REISUB failed to reboot at this point, so I had to hard reset my laptop, go into recovery mode, and run the following to fix my laptop again.

Code: Select all

sudo apt purge bumblebee primus
Now, I get some interesting lines when running dmesg, in particular:

Code: Select all

[    5.190318] nouveau 0000:01:00.0: DRM: Pointer to flat panel table invalid
[    5.206444] nouveau 0000:01:00.0: DRM: unknown connector type 70
[    5.206466] nouveau 0000:01:00.0: DRM: failed to create encoder 1/8/0: -19
[    5.206466] nouveau 0000:01:00.0: DRM: Unknown-1 has no encoders, removing
I also see these lines flash by when logging in.

Full output:

Code: Select all

$ dmesg | grep nouveau
[    4.973080] nouveau: detected PR support, will not use DSM
[    4.973099] nouveau 0000:01:00.0: enabling device (0006 -> 0007)
[    4.973269] nouveau 0000:01:00.0: NVIDIA GM204 (124180a1)
[    5.146574] nouveau 0000:01:00.0: bios: version 84.04.85.00.1e
[    5.146837] nouveau 0000:01:00.0: disp: dcb 5 type 8 unknown
[    5.148720] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/sw_nonctx.bin
[    5.148855] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/sw_ctx.bin
[    5.148983] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/sw_bundle_init.bin
[    5.149127] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/sw_method_init.bin
[    5.182243] nouveau 0000:01:00.0: fb: 3072 MiB GDDR5
[    5.190308] nouveau 0000:01:00.0: DRM: VRAM: 3072 MiB
[    5.190308] nouveau 0000:01:00.0: DRM: GART: 1048576 MiB
[    5.190310] nouveau 0000:01:00.0: DRM: TMDS table version 2.0
[    5.190311] nouveau 0000:01:00.0: DRM: DCB version 4.1
[    5.190312] nouveau 0000:01:00.0: DRM: DCB outp 00: 02024f62 04020010
[    5.190313] nouveau 0000:01:00.0: DRM: DCB outp 01: 04847f86 04400010
[    5.190313] nouveau 0000:01:00.0: DRM: DCB outp 02: 04847f82 00020010
[    5.190314] nouveau 0000:01:00.0: DRM: DCB outp 03: 04858f96 04400020
[    5.190315] nouveau 0000:01:00.0: DRM: DCB outp 04: 04858f92 00020020
[    5.190315] nouveau 0000:01:00.0: DRM: DCB outp 05: 01d1fff8 00000000
[    5.190316] nouveau 0000:01:00.0: DRM: DCB conn 04: 00010461
[    5.190316] nouveau 0000:01:00.0: DRM: DCB conn 07: 01000746
[    5.190317] nouveau 0000:01:00.0: DRM: DCB conn 08: 02000846
[    5.190318] nouveau 0000:01:00.0: DRM: DCB conn 15: 00000f70
[    5.190318] nouveau 0000:01:00.0: DRM: Pointer to flat panel table invalid
[    5.206444] nouveau 0000:01:00.0: DRM: unknown connector type 70
[    5.206466] nouveau 0000:01:00.0: DRM: failed to create encoder 1/8/0: -19
[    5.206466] nouveau 0000:01:00.0: DRM: Unknown-1 has no encoders, removing
[    5.401952] nouveau 0000:01:00.0: DRM: MM: using COPY for buffer copies
[    5.596630] nouveau 0000:01:00.0: priv: GPC0: 419df4 00000000 (1840820e)
[    5.596647] nouveau 0000:01:00.0: priv: GPC1: 419df4 00000000 (1840820e)
[    5.596660] nouveau 0000:01:00.0: priv: GPC2: 419df4 00000000 (1840820e)
[    5.597769] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/fecs_bl.bin
[    5.598702] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/fecs_inst.bin
[    5.599806] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/fecs_data.bin
[    5.600944] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/fecs_sig.bin
[    5.602516] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/gpccs_bl.bin
[    5.603271] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/gpccs_inst.bin
[    5.603832] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/gpccs_data.bin
[    5.604858] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/gpccs_sig.bin
[    5.607480] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/acr/ucode_load.bin
[    5.608511] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/acr/bl.bin
[    5.609646] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/acr/ucode_unload.bin
[    5.756698] nouveau 0000:01:00.0: DRM: allocated 1920x1080 fb: 0x60000, bo ffff912e2f5c7800
[    6.062643] nouveau 0000:01:00.0: fb1: nouveaufb frame buffer device
[    6.091318] [drm] Initialized nouveau 1.3.1 20120801 for 0000:01:00.0 on minor 1
[   24.040259] nouveau 0000:01:00.0: DRM: suspending console...
[   24.040260] nouveau 0000:01:00.0: DRM: suspending display...
[   24.040270] nouveau 0000:01:00.0: DRM: evicting buffers...
[   24.089573] nouveau 0000:01:00.0: DRM: waiting for kernel channels to go idle...
[   24.089595] nouveau 0000:01:00.0: DRM: suspending client object trees...
[   24.096430] nouveau 0000:01:00.0: DRM: suspending kernel object tree...

bardsmanship
Posts: 3
Joined: 2017-12-26 14:17

Re: Debian Stretch: Can't detect Dell U2417H Monitor

#5 Post by bardsmanship »

Now I am trying to install bumblebee-nvidia and primus.

Code: Select all

sudo apt install bumblebee-nvidia primus
I get the following prompt and hit ok.

┌────────────────┤ Configuring xserver-xorg-video-nvidia ├────────────────┐

│ Conflicting nouveau kernel module loaded

│ The free nouveau kernel module is currently loaded and conflicts with
│ the non-free nvidia kernel module.

│ The easiest way to fix this is to reboot the machine once the
│ installation has finished.

│ <Ok>

└──────────────────────────────────────────────────────────┘
During the installation, I see the following lines:

Code: Select all

update-alternatives: error: alternative /usr/lib/nvidia/bumblebee for glx not registered; not setting
rmmod: ERROR: Module nouveau is in use
I add root and my user to the bumblebee group after the installation completes.

Code: Select all

sudo adduser $USER bumblebee
sudo adduser jiayi bumblebee
However I see the same error when running optirun:

Code: Select all

optirun glxgears
[  458.831622] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Unknown chipset: NV124

[  458.831666] [ERROR]Aborting because fallback start is disabled.
Rebooting my machine, I get the white screen of death:

Code: Select all

Oh no! An error has occurred.
Something wrong has happened and the system can't recover. Please log out and try again.
Logging out and trying again leads to the same white screen with the same error message, like a vicious loop.

This time, I have to purge both bumblebee*, primus and nvidia* to get my machine back to a usable state.

Code: Select all

sudo apt purge bumblebee* primus nvidia*
And now there are some extra lines in dmesg | grep nouveau:

Code: Select all

[    4.958100] nouveau: detected PR support, will not use DSM
[    4.958122] nouveau 0000:01:00.0: enabling device (0006 -> 0007)
[    4.958290] nouveau 0000:01:00.0: NVIDIA GM204 (124180a1)
[    5.134406] nouveau 0000:01:00.0: bios: version 84.04.85.00.1e
[    5.134649] nouveau 0000:01:00.0: disp: dcb 5 type 8 unknown
[    5.135154] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/sw_nonctx.bin
[    5.135296] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/sw_ctx.bin
[    5.135449] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/sw_bundle_init.bin
[    5.135661] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/sw_method_init.bin
[    5.168946] nouveau 0000:01:00.0: fb: 3072 MiB GDDR5
[    5.176571] nouveau 0000:01:00.0: DRM: VRAM: 3072 MiB
[    5.176572] nouveau 0000:01:00.0: DRM: GART: 1048576 MiB
[    5.176574] nouveau 0000:01:00.0: DRM: TMDS table version 2.0
[    5.176575] nouveau 0000:01:00.0: DRM: DCB version 4.1
[    5.176576] nouveau 0000:01:00.0: DRM: DCB outp 00: 02024f62 04020010
[    5.176576] nouveau 0000:01:00.0: DRM: DCB outp 01: 04847f86 04400010
[    5.176577] nouveau 0000:01:00.0: DRM: DCB outp 02: 04847f82 00020010
[    5.176578] nouveau 0000:01:00.0: DRM: DCB outp 03: 04858f96 04400020
[    5.176578] nouveau 0000:01:00.0: DRM: DCB outp 04: 04858f92 00020020
[    5.176579] nouveau 0000:01:00.0: DRM: DCB outp 05: 01d1fff8 00000000
[    5.176580] nouveau 0000:01:00.0: DRM: DCB conn 04: 00010461
[    5.176580] nouveau 0000:01:00.0: DRM: DCB conn 07: 01000746
[    5.176581] nouveau 0000:01:00.0: DRM: DCB conn 08: 02000846
[    5.176581] nouveau 0000:01:00.0: DRM: DCB conn 15: 00000f70
[    5.176582] nouveau 0000:01:00.0: DRM: Pointer to flat panel table invalid
[    5.194233] nouveau 0000:01:00.0: DRM: unknown connector type 70
[    5.194254] nouveau 0000:01:00.0: DRM: failed to create encoder 1/8/0: -19
[    5.194255] nouveau 0000:01:00.0: DRM: Unknown-1 has no encoders, removing
[    5.380466] nouveau 0000:01:00.0: DRM: MM: using COPY for buffer copies
[    5.572527] nouveau 0000:01:00.0: priv: GPC0: 419df4 00000000 (1840820e)
[    5.572543] nouveau 0000:01:00.0: priv: GPC1: 419df4 00000000 (1840820e)
[    5.572557] nouveau 0000:01:00.0: priv: GPC2: 419df4 00000000 (1840820e)
[    5.572718] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/fecs_bl.bin
[    5.574244] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/fecs_inst.bin
[    5.574408] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/fecs_data.bin
[    5.574839] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/fecs_sig.bin
[    5.575291] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/gpccs_bl.bin
[    5.575758] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/gpccs_inst.bin
[    5.575971] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/gpccs_data.bin
[    5.576212] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/gr/gpccs_sig.bin
[    5.578105] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/acr/ucode_load.bin
[    5.578636] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/acr/bl.bin
[    5.579030] nouveau 0000:01:00.0: firmware: direct-loading firmware nvidia/gm204/acr/ucode_unload.bin
[    5.727661] nouveau 0000:01:00.0: DRM: allocated 1920x1080 fb: 0x60000, bo ffff8e14b00ec400
[    6.026821] nouveau 0000:01:00.0: fb1: nouveaufb frame buffer device
[    6.051054] [drm] Initialized nouveau 1.3.1 20120801 for 0000:01:00.0 on minor 1
[   22.020071] nouveau 0000:01:00.0: DRM: suspending console...
[   22.020072] nouveau 0000:01:00.0: DRM: suspending display...
[   22.020083] nouveau 0000:01:00.0: DRM: evicting buffers...
[   22.069572] nouveau 0000:01:00.0: DRM: waiting for kernel channels to go idle...
[   22.069594] nouveau 0000:01:00.0: DRM: suspending client object trees...
[   22.076757] nouveau 0000:01:00.0: DRM: suspending kernel object tree...
[  306.793155] nouveau 0000:01:00.0: DRM: resuming kernel object tree...
[  306.938919] nouveau 0000:01:00.0: priv: GPC0: 419df4 00000000 (1f40820e)
[  306.938926] nouveau 0000:01:00.0: priv: GPC1: 419df4 00000000 (1f40820e)
[  306.938931] nouveau 0000:01:00.0: priv: GPC2: 419df4 00000000 (1f40820e)
[  306.958169] nouveau 0000:01:00.0: DRM: resuming client object trees...
[  306.958229] nouveau 0000:01:00.0: DRM: resuming display...
[  306.958257] nouveau 0000:01:00.0: DRM: resuming console...
[  313.057982] nouveau 0000:01:00.0: DRM: suspending console...
[  313.057985] nouveau 0000:01:00.0: DRM: suspending display...
[  313.058000] nouveau 0000:01:00.0: DRM: evicting buffers...
[  313.058003] nouveau 0000:01:00.0: DRM: waiting for kernel channels to go idle...
[  313.058023] nouveau 0000:01:00.0: DRM: suspending client object trees...
[  313.064744] nouveau 0000:01:00.0: DRM: suspending kernel object tree...

negora
Posts: 15
Joined: 2016-09-15 06:28
Has thanked: 2 times

Re: Debian Stretch: Can't detect Dell U2417H Monitor

#6 Post by negora »

Bardsmanship: I invite you to check my thread-monologue :lol: . During these days I've had a problem very similar to yours and I've been able to solve it (thanks to some guides; credits to them).

The only thing that sometimes fails is the configuration with "xrandr". Since KDE Plasma has a module that handles the screens, maybe it's interfering with "xrandr". I'll try disable that module.

Post Reply