• ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
HP Recommended
HP 17-ca1027na
Linux
Respect your Warranty, no responsibility whatsoever accepted for ill prepared
installations or wiping of Windows and Recovery partitions.
NB this is a sketch only, there is ample information elsewhere to ensure a trouble free
experience, please read.
  1. Shrink your Windows 10 system and data partitions using diskmgmnt.msc (test choice was 60GB and 100GB respectively). NB with Warranty in mind, don't do this Linux side.
  2. Prepare a Kubuntu 20.04LTS Live CD or USB stick.
  3. Reboot, F10 - disable Secure Boot (re-enable for Windows sessions).
  4. Reboot, F9
  5. Install Kubuntu 20.04LTS
Your system should run nicely, but there are still a few issues to address concerning default
amdgpu driver and/or compositor.
Problem: Windows do not render after suspend and resume
(just ghostly title bars, panels and widgets visible).
Note: Not investigated, whether or not this is compositor related and fixable as below. Solution: Download latest proprietary AMD driver 'Radeon™ Software for Linux® 20.10'
(as of May 2020) for Ubuntu.
  1. Extract archive
    ~$ tar -xvf amdgpu-pro-20.10-1048554-ubuntu-18.04.tar.xz
  2. To circumvent OS version check, only install relevant packages
    ~$ sudo dpkg -i amdgpu-dkms-firmware_5.4.7.53-1048554_all.deb \
              amdgpu-dkms_5.4.7.53-1048554_all.deb amdgpu-core_20.10-1048554_all.deb

  3. Reboot.
Although only certified for Ubuntu 18.04, no problems experienced in default 2D modes
(not tested in 3D modes, e.g. gaming).
Problem: Black screen and/or system unresponsive after suspend and resume. Solution: This appears to be compositor related but is fixable: 1. Create the following script in /usr/bin (don't forget to make it executable) /usr/bin/susagent #!/bin/bash # do nothing if agent already started by desktop shortcut if [ -z $(pgrep -f "dbus-monitor.*org.freedesktop.ScreenSaver") ] ; then echo $(date)" Disabling compositor" qdbus org.kde.KWin /Compositor org.kde.kwin.Compositing.suspend if [ ${1:+(-s|--suspend)} ] ; then systemctl suspend ; fi dbus-monitor --session \ "type='signal',interface='org.freedesktop.ScreenSaver'" | while read x; do case "$x" in *"boolean false"*) echo $(date)" Enabling compositor" qdbus org.kde.KWin /Compositor org.kde.kwin.Compositing.resume # break, exit don't work after piping kill $(pgrep -f "dbus-monitor.*org.freedesktop.ScreenSaver") break;; esac done fi 2. Backup /etc/systemd/sleep.conf as sleep.config.original 3. Create/alter /etc/systemd/sleep.conf /etc/systemd/sleep.conf [Sleep] #AllowSuspend=yes #AllowHibernation=yes #AllowSuspendThenHibernate=yes #AllowHybridSleep=yes ##SuspendMode= SuspendMode=suspend ##SuspendState=mem standby freeze SuspendState=mem #HibernateMode=platform shutdown #HibernateState=disk #HybridSleepMode=suspend platform shutdown #HybridSleepState=disk #HibernateDelaySec=180min 4. Backup /etc/systemd/logind.conf as logind.conf.original 5. Create/alter /etc/systemd/logind.conf /etc/systemd/logind.conf [Login] #NAutoVTs=6 #ReserveVT=6 #KillUserProcesses=no #KillOnlyUsers= #KillExcludeUsers=root #InhibitDelayMaxSec=5 #HandlePowerKey=poweroff #HandleSuspendKey=suspend #HandleSuspendKey=ignore #HandleHibernateKey=hibernate HandleLidSwitch=suspend #HandleLidSwitch=ignore HandleLidSwitchDocked=suspend #HandleLidSwitchDocked=ignore #PowerKeyIgnoreInhibited=no #SuspendKeyIgnoreInhibited=no #HibernateKeyIgnoreInhibited=no #LidSwitchIgnoreInhibited=yes #HoldoffTimeoutSec=30s #IdleAction=ignore #IdleActionSec=30min #RuntimeDirectorySize=10% #RemoveIPC=yes #InhibitorsMax=8192 #SessionsMax=8192 #UserTasksMax=33% 6. Create the following service in /etc/systemd/system /etc/systemd/system/suspend-monitor@.service [Unit] Description=User suspend and resume actions Before=suspend.target [Service] User=%I Type=forking ExecStart=/usr/bin/susagent [Install] WantedBy=suspend.target 7. Enable this service (change <username> to suit) ~$ sudo systemctl enable suspend-monitor@<username> 8. Load service ~$ sudo systemctl daemon-reload 9. Check OK ~$ sudo systemctl status suspend-monitor@<username> Suspend/resume should work fine now. Here's a desktop file for convenience: [Desktop Entry] ;X-DBUS-StartupType=none ;X-KDE-SubstituteUID=false ;X-KDE-Username= Comment[en_GB]= Comment= Exec=susagent --suspend GenericName[en_GB]=Lock screen then suspend GenericName=Lock screen then suspend Icon=system-suspend MimeType= Name[en_GB]=Suspend Name=Suspend Path= StartupNotify=true Terminal=false TerminalOptions= Type=Application X-DBUS-ServiceName= X-DBUS-StartupType= X-KDE-SubstituteUID=false X-KDE-Username= And to remap right Alt as menu key: ~/.Xmodmap keycode 108 = Menu NoSymbol Menu Sorry, due to other commitments, this will probably be a 'one off' post. Corrections,
improvements and responses to help requests from other members greatly
appreciated.
Footnote: Also works on a venerable HP550 running Kubuntu 18.04LTS, subject to a few additions: /etc/acpi/events/Lid event=button/lid LID close action=/usr/bin/susagent --suspend /etc/acpi/sleep-button event=button/sleep SBTN * action=/usr/bin/susagent (Keep existing sleep.conf and logind.conf - uncomment as above.)

 

Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.