Linux Lite Forums

General => On Topic => Topic started by: Wirezfree on January 09, 2015, 09:38:42 AM

Title: Loose xfce desktop when HDMI disconnected
Post by: Wirezfree on January 09, 2015, 09:38:42 AM
Hi,

I have just installed LL 2.2 on a new Intel based mini PC.
I have it connected directly to a monitor(input #2) via HDMI
The monitors got 2 HDMI inputs, input #1 is my main PC.

If I use the the monitors "switch source input" I can switch between the 2 PC's,
However If I switch from the "New" PC to the other PC and back I loose the
"New PC's" Desktop, I go back and it's black.
If I do a crt alt f3, I can get a system prompt and do a restart of the Desktop.

The other PC is fine, I can go back to that and it's fine, that is running LL 2.0

So the new PC does not like having it's HDMI output switched.

It's not screensaver/display settings in LL 2.2,
I can leave the New PC connected to display for periods of time, screen goes blank
move mouse, tap keyboard and it's back.

Any ideas welcome. (inxi -F below)

Thanks... Dave

Code: [Select]
dave@jetway1:~$ inxi -F
System:    Host: jetway1 Kernel: 3.17.0-linuxlite x86_64 (64 bit) Desktop: Xfce 4.11.6 Distro: Ubuntu 14.04 trusty
Machine:   Mobo: NP93B model: NP93B version: 1.0 Bios: American Megatrends version: BAR3BA02 date: 09/16/2014
CPU:         Dual core Intel Celeron CPU N2807 (-MCP-) cache: 1024 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx)
                Clock Speeds: 1: 1919.519 MHz 2: 1814.500 MHz
Graphics:  Card: Intel ValleyView Gen7 X.Org: 1.15.1 drivers: intel (unloaded: fbdev,vesa) Resolution: [email protected]
                GLX Renderer: Mesa DRI Intel Bay Trail GLX Version: 3.0 Mesa 10.1.3
Audio:       Card: Intel ValleyView High Definition Audio Controller driver: snd_hda_intel Sound: ALSA ver: k3.17.0-linuxlite
Network:   Card-1: Realtek RTL8723BE PCIe Wireless Network Adapter driver: rtl8723be
                IF: wlan0 state: up mac: 40:e2:30:87:a9:c5
                Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
                IF: p1p1 state: down mac: 00:30:18:c5:08:17
Drives:      HDD Total Size: 123.9GB (3.9% used) 1: id: /dev/sda model: Samsung_SSD_840 size: 120.0GB
                2: USB id: /dev/sdb model: USB_DISK size: 3.9GB
Partition:   ID: / size: 20G used: 4.3G (23%) fs: ext4 ID: /home size: 20G used: 148M (1%) fs: ext4
                ID: swap-1 size: 4.29GB used: 0.00GB (0%) fs: swap
RAID:       No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors:   System Temperatures: cpu: 33.0C mobo: N/A
                Fan Speeds (in rpm): cpu: N/A
Info:         Processes: 173 Uptime: 2 min Memory: 315.7/1881.8MB Client: Shell (bash) inxi: 1.9.17
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: altman on January 09, 2015, 10:18:35 AM
What it does if you switch both cables , just want to check cables if do the same on different pc .

Just to see if it duplicates the issue .
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: Wirezfree on January 09, 2015, 01:16:05 PM
Hi,

Just tried it, and actually another PC also, always the same result.
Disconnect the HDMI from the New PC output, loose the xfce desktop.

I do now have another issue, The display is ripping during startup/shutdown.

I think this related to:
To fix a lack of Wireless/WiFi I upgraded the kernel to 3.16, WiFi works fine,
no Bluetooth though, lots of people reporting this, newish card AzureWave
mini pcie card, based on Realtek chip-set rtl8723be

NOTE:
the Kernel update was done after discovering the HDMI issue
So I may have to pull the kernel update, and use cable at the moment.

Dave
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: altman on January 09, 2015, 02:44:08 PM
Ever tried LL 3.18 kernel ! might work .

Did bluetooth was removed due to upgrade ! reinstall it might work .
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: Wirezfree on January 09, 2015, 03:04:56 PM
Hi altman.

Yes, I can try 3.18, I have nothing to loose apart from the WiFi.
If there was some way of identifying and extracting the WiFi drivers..??
I could drop back to 3.13, and possibly use the WiFi drivers..??

Then I would only be dealing with Desktop/HDMI issue.

The Bluetooth issue can wait,
It seems it's just to new a card.!!

Dave
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: altman on January 09, 2015, 03:16:28 PM
If 3.18 doesn t work for you , you can always turn back to 3.37 also .
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: Wirezfree on January 09, 2015, 03:56:03 PM
Hi,

Going to try 3.18 later, If I still have the ripping video issue, as in 3.17
I will have to drop back to 3.13, and hope to resolve the HDMI issue.

Dave
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: altman on January 09, 2015, 04:17:55 PM
Hope that you fix this mate .
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: Wirezfree on January 10, 2015, 05:22:19 AM
Hi altman,

I tried the 3.18 kernel, unfortunately I lost wireless.

If I put the HDMI cable un-plugging issue to one side...

I have:
3.13 I have to use cable connection, but no screen ripping.
3.17 Wireless works, but end up up with screen ripping.
3.18 No Wireless and Screen ripping

So my only hope is to find out how I can get the Wireless drivers that work in 3.17 into 3.13

Thanks... Dave
Title: [SOLVED]: WiFi Issue ((Loose xfce desktop when HDMI disconnected - Still OPEN))
Post by: Wirezfree on January 10, 2015, 07:06:13 AM
Hi,

*** UPDATE: This does not appear to be a stable fix ~ NEW Thread to be started ***

Found a solution to the WiFi drivers after some Googling
If you have WiFi based on: rtl8723be Chipset, then

Code: [Select]
sudo apt-get install linux-headers-generic build-essential git
git clone http://github.com/lwfinger/rtl8723be
cd rtl8723be
git checkout 604aa9058fb9e5bb1cf571c99989d081f8fc8b9
make
sudo make install
sudo modprobe rtl8723be

Now they show up in dmseg log:
Code: [Select]
[    5.843191] rtl8723be: Using firmware rtlwifi/rtl8723befw.bin
[    5.884726] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
[    5.885072] rtlwifi: wireless switch is on

Just hope this didn't break anything else...!!!

Dave


(( Now to figure out the HDMI/Desktop issue))
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: altman on January 10, 2015, 09:05:04 AM
Glad that you fixed the wifi issue , hope it wont take too long to fix other issue . It s a nice How To .
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: Wirezfree on January 11, 2015, 12:43:57 PM
Update,

It appears the WiFi Fix is not stable... After a period of time, 1 ~ 2 hours it starts to disconnect.
I'm going to start another thread, otherwise this thread will become even more confusing.

Dave
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: altman on January 11, 2015, 01:00:39 PM
Gee that sux , tought it was resolved .
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: Wirezfree on January 11, 2015, 01:04:44 PM
To put this thread back on track.

Summary:
I have a Monitor with 2 X HDMI inputs
Original PC ~ LL 2.0 on HDMI#1 , New PC ~ LL 2.2 on HDMI#2
If I swap the input on monitor between HDMI#1 & #2
I loose the xfce desktop on New PC on HDMI#2

It is not the monitor/cables I have swapped around cables and input sockets.

I do believe it is LL 2.2 config/set-up.?.. Why.??

In an effort to diagnose a separate WiFi issue I created a Ubuntu 14.10 (kernel 3.16) live boot USB stick.
(( WiFi issue to be described in another thread ))

What I found was If I boot the Ubuntu, I'm able to switch the display between LL 2.0 & Ubuntu without any issues.
To re-verify, I then booted my LL 2.2 Live USB stick, I see the same issue with Live and Installed, If I switch my
monitor input I loose my desktop. The only way to get it back is a ctrl-alt-F3 and do a:
Code: [Select]
sudo service lightdm restart
(http://i.imgur.com/wVUqKEl.jpg)

Thanks... Dave





Title: Re: Loose xfce desktop when HDMI disconnected
Post by: altman on January 11, 2015, 01:06:49 PM
Thanx for sharing mate . Will be useful for other users as well .
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: Wirezfree on January 11, 2015, 01:12:28 PM
Hi,

I'm hoping somebody can help out on this...
It's like something in xfce configuration get's lost/messed up when LL is not seeing a display.??

Dave
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: altman on January 11, 2015, 01:30:12 PM
What s the monitor wirezfree , might be a monitor driver issue here .

Also , does your graphic card(s) support hdmi also !
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: Wirezfree on January 11, 2015, 01:51:13 PM
Hi altman,

It's an AOC I2367F Monitor, Never had any issues to-date with display & LL
Here is the PC Info, this was when I was trying kernel 3.17, for my other issue, WiFi

Code: [Select]
dave@jetway1:~$ inxi -F
System:    Host: jetway1 Kernel: 3.17.0-linuxlite x86_64 (64 bit) Desktop: Xfce 4.11.6 Distro: Ubuntu 14.04 trusty
Machine:   Mobo: NP93B model: NP93B version: 1.0 Bios: American Megatrends version: BAR3BA02 date: 09/16/2014
CPU:       Dual core Intel Celeron CPU N2807 (-MCP-) cache: 1024 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx)
           Clock Speeds: 1: 1919.519 MHz 2: 1814.500 MHz
Graphics:  Card: Intel ValleyView Gen7 X.Org: 1.15.1 drivers: intel (unloaded: fbdev,vesa) Resolution: [email protected]
           GLX Renderer: Mesa DRI Intel Bay Trail GLX Version: 3.0 Mesa 10.1.3
Audio:     Card: Intel ValleyView High Definition Audio Controller driver: snd_hda_intel Sound: ALSA ver: k3.17.0-linuxlite
Network:   Card-1: Realtek RTL8723BE PCIe Wireless Network Adapter driver: rtl8723be
           IF: wlan0 state: up mac: 40:e2:30:87:a9:c5
           Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
           IF: p1p1 state: down mac: 00:30:18:c5:08:17
Drives:    HDD Total Size: 123.9GB (3.9% used) 1: id: /dev/sda model: Samsung_SSD_840 size: 120.0GB
           2: USB id: /dev/sdb model: USB_DISK size: 3.9GB
Partition: ID: / size: 20G used: 4.3G (23%) fs: ext4 ID: /home size: 20G used: 148M (1%) fs: ext4
           ID: swap-1 size: 4.29GB used: 0.00GB (0%) fs: swap
RAID:      No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors:   System Temperatures: cpu: 33.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 173 Uptime: 2 min Memory: 315.7/1881.8MB Client: Shell (bash) inxi: 1.9.17

Dave
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: Wirezfree on January 12, 2015, 07:45:08 PM
Hi,

Not giving up, more Googling led me to this:
It talks about TV on HDMI being turned OFF,
Which is what I suspect the result of me me switching inputs on the display.??
https://bugzilla.xfce.org/show_bug.cgi?id=11107 (https://bugzilla.xfce.org/show_bug.cgi?id=11107)

It seems like it's what I'm experiencing,, But not sure what to do.?
There are some patches, but I have no idea what to do with them.?

There is also this:
https://bugs.launchpad.net/ubuntu/+source/xfce4-settings/+bug/1308105 (https://bugs.launchpad.net/ubuntu/+source/xfce4-settings/+bug/1308105)

Any pointers on what to do welcome

Dave
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: altman on January 12, 2015, 09:48:58 PM
Hey cool , maybe someone will chime in & give you a hand on this wifi issue .
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: Wirezfree on January 13, 2015, 04:16:37 AM
Hi altman,

This is the xfce/hdmi issue ;)
There appears to be a fix, but not sure how to apply/do it.?
I may try posting in the referenced thread.
But that seems focused on the Bug/Fix/Verification, rather than a How To.

I have another thread on WiFi.

Dave
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: Wirezfree on January 14, 2015, 06:02:29 AM
Quick update on the xfce/HDMI issue

> Have asked the question on bugzilla.xfce on how to apply the fix, no response yet.
> Did another test with a live boot of another xfce distro, Antix-MX14, and that works fine, do not loose the desktop.

Dave
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: altman on January 14, 2015, 09:13:35 AM
Wonder if it would work on a full antix-MX14 install .
Title: Re: Loose xfce desktop when HDMI disconnected
Post by: Wirezfree on January 14, 2015, 10:28:52 AM
Hi,

I'm sure it would,
Now I know what the issue is, I tried doing a Live boot of LL 2.0 & 2.2,
and the problem is the same, if I remove HDMI, I loose the xfce desktop.

It's something I would never of thought of doing during a Live boot, remove HDMI cable.

Dave