zondag 8 mei 2016

Lubuntu Remote XRDP and VNC blank desktop [Solved]

I installed xrdp and x11vnc on my Lubuntu 16.04LTS box
Trying to access my Lubuntu using XRDP  and vnc gave me a blank desktop on my win10x64 desktop (using mstsc.exe for rdp)

I read somewhere to install lxde-common, so i did (apt-get install lxde-common)
And yeah it worked for xrdp (the screen icons are a bit different but I can live with that)
(no tweaking done)

To fix the blank desktop using VNC you have to uncomment 2 lines which are commented by default after installation of x11vnc (below the setting where the 2 lines are uncommented which fixed the blank desktop)

root@ub:~/.vnc# more xstartup

# Uncomment the following two lines for normal desktop:
exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &

Strange is that I see some LXDE entries are added in the autostart which I have not done myself:

LUbuntu light-locker-settings didn't start (cannot activate screen dim)

Lubuntu based on Ubuntu 16.04LTS
When I click on Light locker settings it does not show the menu for light-locker and worse I noticed that my screen does not dim at all

In order to make Screen dim work I installed xscreensaver but did not work either: When i clicked on the screensaver icon in /usr/share/applications it said the following:

The XScreenSaver daemon doesn't seem to be running on ":0". Launch it now?

In order to launch it automatically  I added xscreensaver -nosplash   in
Preferences -> Default Applications for LXSession -> Autostart

Now it is automatically started and after I adjusted the timings for the screensaver it works as intended.

zaterdag 7 mei 2016

Deep sleep mode Nexus 5x and Whatsapp

I noticed that I did not receive whatsapp notifications on my phone while it was in sleep mode.

I'm going to see if disabling deep sleep for Whatsapp solves it.

You can turn this off per app. Go to:

Settings > Battery 
Touch the menu icon (three dots)
Touch Battery Optimization and touch the down arrow, followed by All apps
Tap on the app that you want to turn off optimization
Select Don't Optimize and touch Done.