Display sleeps on Java-application-start with USB-C

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Beekman
Level 1
Level 1
Posts: 19
Joined: Fri Sep 02, 2016 11:45 am
Location: The Netherlands

Display sleeps on Java-application-start with USB-C

Post by Beekman »

Hi all,

I'm running Mint on a Dell laptop, with two 27" Dell displays.
Because the laptop itself does not have the required (display) ports, I'm using a docker connected through USB-C.

Every time I start a Java application, there is a chance one of the displays turn off.
I connected one of the displays directly to the laptop (HDMI), so now the problem is only with my secondary display.
It's not difficult to solve, for example by switching to a console display (ctrl+alt+f1) and switching back to the X server console, but because this happens a lot of times every day, it gets very annoying.

Does anyone know how to solve this, or how to find out what's the problem?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31913
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Display sleeps on Java-application-start with USB-C

Post by SMG »

Beekman wrote: Fri May 14, 2021 12:20 amEvery time I start a Java application, there is a chance one of the displays turn off.
Is there one particular program that causes this to happen or is it one of several?

I've not heard of this type of issue, so I'm not sure what might be happening. Did you have to install a DisplayLink driver for the monitors to work through the dock?

As a start, please give us information about your install by entering this command in a terminal: inxi -Fxxxrz
Click </> from the mini toolbar above the textbox where you type your reply and then place your cursor between the code markers and paste the results of the command between the code markers [code]Results[/code]. This will let us know how Mint sees your hardware.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Beekman
Level 1
Level 1
Posts: 19
Joined: Fri Sep 02, 2016 11:45 am
Location: The Netherlands

Re: Display sleeps on Java-application-start with USB-C

Post by Beekman »

Thanks for your response.

It can happen with any program, our own desktop applications or for example IntelliJ.

Code: Select all

System:    Kernel: 5.4.0-73-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 4.8.6 wm: muffin 4.8.1 
           dm: LightDM 1.30.0 Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: Dell product: Latitude 5510 v: N/A serial: <filter> Chassis: type: 10 serial: <filter> 
           Mobo: Dell model: 08PHDH v: A00 serial: <filter> UEFI: Dell v: 1.0.0 date: 03/05/2020 
Battery:   ID-1: BAT0 charge: 62.2 Wh condition: 62.2/68.0 Wh (92%) volts: 16.9/15.2 model: SWD-ATL4.490 DELL JG75F04 
           type: Li-poly serial: <filter> status: Full 
CPU:       Topology: Quad Core model: Intel Core i5-10310U bits: 64 type: MT MCP arch: Kaby Lake rev: C L2 cache: 6144 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 35199 
           Speed: 700 MHz min/max: 400/4400 MHz Core speeds (MHz): 1: 700 2: 700 3: 700 4: 700 5: 700 6: 700 7: 700 8: 700 
Graphics:  Device-1: Intel UHD Graphics vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:9b41 
           Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa 
           resolution: 2560x1440~60Hz, 2560x1440~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 20.2.6 direct render: Yes 
Audio:     Device-1: Intel vendor: Dell driver: snd_hda_intel v: kernel bus ID: 00:1f.3 chip ID: 8086:02c8 
           Device-2: Realtek type: USB driver: snd-usb-audio bus ID: 1-1.3.4:10 chip ID: 0bda:402e serial: <filter> 
           Sound Server: ALSA v: k5.4.0-73-generic 
Network:   Device-1: Intel Wireless-AC 9462 driver: iwlwifi v: kernel port: 3000 bus ID: 00:14.3 chip ID: 8086:02f0 
           IF: wlo1 state: down mac: <filter> 
           Device-2: Intel Ethernet I219-LM vendor: Dell driver: e1000e v: 3.2.6-k port: efa0 bus ID: 00:1f.6 
           chip ID: 8086:0d4e 
           IF: eno2 state: down mac: <filter> 
           Device-3: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152 bus ID: 2-1.4:4 chip ID: 0bda:8153 
           serial: <filter> 
           IF: enxc03ebaa0d24e state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 476.94 GiB used: 128.59 GiB (27.0%) 
           ID-1: /dev/nvme0n1 model: PC SN520 NVMe WDC 512GB size: 476.94 GiB speed: 15.8 Gb/s lanes: 2 serial: <filter> 
           rev: 20220012 scheme: GPT 
Partition: ID-1: / size: 466.30 GiB used: 128.28 GiB (27.5%) fs: ext4 dev: /dev/dm-1 
           ID-2: /boot size: 704.5 MiB used: 301.0 MiB (42.7%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-3: swap-1 size: 980.0 MiB used: 8.0 MiB (0.8%) fs: swap dev: /dev/dm-2 
Sensors:   System Temperatures: cpu: 25.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 0 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list 
           1: deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ focal main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http://packages.linuxmint.com ulyssa main upstream import backport #id:linuxmint_main
           2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/teams.list 
           1: deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main
           Active apt repos in: /etc/apt/sources.list.d/teamviewer.list 
           1: deb https://linux.teamviewer.com/deb stable main
Info:      Processes: 401 Uptime: 3d 23h 39m Memory: 31.05 GiB used: 3.20 GiB (10.3%) Init: systemd v: 245 runlevel: 5 
           Compilers: gcc: 9.3.0 alt: 9 Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
User avatar
SMG
Level 25
Level 25
Posts: 31913
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Display sleeps on Java-application-start with USB-C

Post by SMG »

With that new of a processor, I recommend you switch to the 5.8 kernel which is available in Update Manager.

Open Update Manager. Select View > Linux Kernels and click Continue. Make sure 5.8 is selected on the left panel and then click the top-most option on the right panel. An "Install" button will appear. Install the kernel and then reboot for it to become active.

I would also recommend updating your computer's BIOS/UEFI. Dell Latitude 5410/5510 and Dell Precision 3550 System BIOS indicates the latest available is 1.5.1. It appears you are still running the original version. There have been a number of fixes and enhancements since then.

Machine:
Type: Laptop System: Dell product: Latitude 5510 v: N/A serial: <filter> Chassis: type: 10 serial: <filter>
Mobo: Dell model: 08PHDH v: A00 serial: <filter> UEFI: Dell v: 1.0.0 date: 03/05/2020
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Beekman
Level 1
Level 1
Posts: 19
Joined: Fri Sep 02, 2016 11:45 am
Location: The Netherlands

Re: Display sleeps on Java-application-start with USB-C

Post by Beekman »

It's been more than a year, and still the problem exists.

Kernel and BIOS or updated:

Code: Select all

System:    Kernel: 5.15.0-46-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.2.7 wm: muffin 5.2.1 dm: LightDM 1.30.0 
           Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: Dell product: Latitude 5510 v: N/A serial: <filter> Chassis: type: 10 serial: <filter> 
           Mobo: Dell model: 08PHDH v: A00 serial: <filter> UEFI: Dell v: 1.15.0 date: 07/11/2022 
Battery:   ID-1: BAT0 charge: 54.5 Wh condition: 54.5/68.0 Wh (80%) volts: 16.4/15.2 model: SWD-ATL4.490 DELL JG75F04 
           type: Li-poly serial: <filter> status: Full 
CPU:       Topology: Quad Core model: Intel Core i5-10310U bits: 64 type: MT MCP arch: Kaby Lake rev: C L2 cache: 6144 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 35199 
           Speed: 800 MHz min/max: 400/4400 MHz Core speeds (MHz): 1: 795 2: 1442 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 
Graphics:  Device-1: Intel UHD Graphics vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:9b41 
           Display: x11 server: X.Org 1.20.13 driver: modesetting unloaded: fbdev,vesa 
           resolution: 2560x1440~60Hz, 2560x1440~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 21.2.6 direct render: Yes 
Audio:     Device-1: Intel vendor: Dell driver: snd_hda_intel v: kernel bus ID: 00:1f.3 chip ID: 8086:02c8 
           Device-2: Microdia Camera type: USB driver: snd-usb-audio,uvcvideo bus ID: 1-2:3 chip ID: 0c45:6340 
           serial: <filter> 
           Device-3: Realtek type: USB driver: snd-usb-audio bus ID: 1-1.3.4:11 chip ID: 0bda:402e serial: <filter> 
           Sound Server: ALSA v: k5.15.0-46-generic 
Network:   Device-1: Intel Wireless-AC 9462 driver: iwlwifi v: kernel port: 3000 bus ID: 00:14.3 chip ID: 8086:02f0 
           IF: wlo1 state: down mac: <filter> 
           Device-2: Intel Ethernet I219-LM vendor: Dell driver: e1000e v: kernel port: efa0 bus ID: 00:1f.6 
           chip ID: 8086:0d4e 
           IF: eno2 state: down mac: <filter> 
           Device-3: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152 bus ID: 2-1.4:4 chip ID: 0bda:8153 
           serial: <filter> 
           IF: enxc03ebaa0d24e state: up speed: 1000 Mbps duplex: full mac: <filter> 
           IF-ID-1: br-a7f2d060ee40 state: down mac: <filter> 
           IF-ID-2: br-f848c1722838 state: down mac: <filter> 
           IF-ID-3: docker0 state: down mac: <filter> 
           IF-ID-4: lxcbr0 state: down mac: <filter> 
           IF-ID-5: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A 
Drives:    Local Storage: total: 476.94 GiB used: 376.63 GiB (79.0%) 
           ID-1: /dev/nvme0n1 model: PC SN520 NVMe WDC 512GB size: 476.94 GiB speed: 15.8 Gb/s lanes: 2 serial: <filter> 
           rev: 20220012 scheme: GPT 
Partition: ID-1: / size: 466.23 GiB used: 376.34 GiB (80.7%) fs: ext4 dev: /dev/dm-1 
           ID-2: /boot size: 703.1 MiB used: 273.7 MiB (38.9%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-3: swap-1 size: 980.0 MiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-2 
Sensors:   System Temperatures: cpu: 43.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 0 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list 
           1: deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ focal main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http://packages.linuxmint.com una main upstream import backport #id:linuxmint_main
           2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http://archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/opera-stable.list 
           1: deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
           Active apt repos in: /etc/apt/sources.list.d/teams.list 
           1: deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main
           Active apt repos in: /etc/apt/sources.list.d/teamviewer.list 
           1: deb https://linux.teamviewer.com/deb stable main
           Active apt repos in: /etc/apt/sources.list.d/vscode.list 
           1: deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
Info:      Processes: 324 Uptime: 7m Memory: 30.96 GiB used: 4.20 GiB (13.6%) Init: systemd v: 245 runlevel: 5 Compilers: 
           gcc: 9.4.0 alt: 9 Shell: bash v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
If anyone has more ideas, I would love to hear them :)
User avatar
SMG
Level 25
Level 25
Posts: 31913
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Display sleeps on Java-application-start with USB-C

Post by SMG »

Beekman wrote: Sun May 16, 2021 2:30 amIt can happen with any program, our own desktop applications or for example IntelliJ.
Have you checked to see if there are any bugs against IntelliJ for this type of situation?

I suggest you clean your root partition. Anything more than 75% and you are likely to see performance issues.
Partition:
ID-1: / size: 466.23 GiB used: 376.34 GiB (80.7%) fs: ext4 dev: /dev/dm-1
ID-2: /boot size: 703.1 MiB used: 273.7 MiB (38.9%) fs: ext4 dev: /dev/nvme0n1p2
ID-3: swap-1 size: 980.0 MiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-2
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Beekman
Level 1
Level 1
Posts: 19
Joined: Fri Sep 02, 2016 11:45 am
Location: The Netherlands

Re: Display sleeps on Java-application-start with USB-C

Post by Beekman »

I deleted a few unused VM's, the root partition is better now.

Code: Select all

Partition: ID-1: / size: 466.23 GiB used: 290.86 GiB (62.4%) fs: ext4 dev: /dev/dm-1 
           ID-2: /boot size: 703.1 MiB used: 273.7 MiB (38.9%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-3: swap-1 size: 980.0 MiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-2 
But when I started this topic it wasn't this high, so this will not cause the problem.

IntelliJ is only one of the many applications, for example it will happen more often with the Teams app than with IntelliJ.

Also, I've noticed that it happens a lot (> 40% chance) when I start a random application with Java 11,
and it almost never happens (<10% chance) when I start an application with Java 8.
It also looks to happen more with AdoptOpenJDK (>75%) than with the default open jdk.

It does not matter if it's a swing application, or a spring boot application, or for example JBoss.

I have a feeling that if I move the mouse when starting an application, the chances are much higher for the problem to occur.
So when I start for example Teams, I try to not touch the mouse, and it chances are better for it to start without a problem.

I was thinking maybe the USB-C has some problems handling the input and output, and that's why the display goes to sleep.
User avatar
SMG
Level 25
Level 25
Posts: 31913
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Display sleeps on Java-application-start with USB-C

Post by SMG »

Beekman wrote: Wed Sep 07, 2022 3:35 amBut when I started this topic it wasn't this high, so this will not cause the problem.
I understand that. I just didn't want you to run into new problems because the system was getting full.
Beekman wrote: Wed Sep 07, 2022 3:35 amIntelliJ is only one of the many applications, for example it will happen more often with the Teams app than with IntelliJ.

Also, I've noticed that it happens a lot (> 40% chance) when I start a random application with Java 11,
and it almost never happens (<10% chance) when I start an application with Java 8.
It also looks to happen more with AdoptOpenJDK (>75%) than with the default open jdk.

It does not matter if it's a swing application, or a spring boot application, or for example JBoss.

I have a feeling that if I move the mouse when starting an application, the chances are much higher for the problem to occur.
So when I start for example Teams, I try to not touch the mouse, and it chances are better for it to start without a problem.

I was thinking maybe the USB-C has some problems handling the input and output, and that's why the display goes to sleep.
If the problem was with the graphics driver then it should happen with every program you use and that is not the case. It seems to only specifically happen with your Java apps. Perhaps there is something in how they are being launched which might be a factor. I do not use any of them so I do not have any guesses.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Graphics Cards & Monitors”