The officially official Devuan Forum!

You are not logged in.

#1 Re: DIY » Removing Apparmor » 2024-09-05 15:28:55

Thanks, strangely it now wants a load of armhf packages, though I'm on aarch64:

$ sudo apt install dbus libapparmor1- -s
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
dbus is already the newest version (1.14.10-1~deb12u1).
dbus set to manually installed.
The following additional packages will be installed:
  dbus-daemon:armhf gcc-12-base:armhf libapparmor1:armhf libaudit1:armhf libc6:armhf libcap-ng0:armhf libcap2:armhf
  libdbus-1-3:armhf libexpat1:armhf libgcc-s1:armhf libgcrypt20:armhf libgpg-error0:armhf liblz4-1:armhf liblzma5:armhf
  libpcre2-8-0:armhf libselinux1:armhf libsystemd0:armhf libzstd1:armhf
Suggested packages:
  glibc-doc:armhf locales:armhf libnss-nis:armhf libnss-nisplus:armhf rng-tools:armhf
Recommended packages:
  libidn2-0:armhf libgpg-error-l10n:armhf
The following packages will be REMOVED:
  dbus-daemon libapparmor1 libsystemd-shared
The following NEW packages will be installed:
  dbus-daemon:armhf gcc-12-base:armhf libapparmor1:armhf libaudit1:armhf libc6:armhf libcap-ng0:armhf libcap2:armhf
  libdbus-1-3:armhf libexpat1:armhf libgcc-s1:armhf libgcrypt20:armhf libgpg-error0:armhf liblz4-1:armhf liblzma5:armhf
  libpcre2-8-0:armhf libselinux1:armhf libsystemd0:armhf libzstd1:armhf
0 upgraded, 18 newly installed, 3 to remove and 0 not upgraded.

#2 Re: DIY » Removing Apparmor » 2024-09-05 14:54:14

Thanks - that would remove dbus as well, which I think I need:

The following packages will be REMOVED:
  dbus dbus-daemon libapparmor1 libsystemd-shared udisks2

#3 Re: DIY » Removing Apparmor » 2024-09-05 14:48:43

Thanks, I thought so, and haven't touched it. Strange that these directories are created despite setting the security=none kernel parameter. What about /sys/module/apparmor?

$ dpkg -S apparmor
libapparmor1:arm64: /usr/share/doc/libapparmor1/copyright
libapparmor1:arm64: /usr/share/doc/libapparmor1
man-db: /etc/apparmor.d/usr.bin.man
libapparmor1:arm64: /usr/lib/aarch64-linux-gnu/libapparmor.so.1.8.4
isc-dhcp-client: /etc/apparmor.d/sbin.dhclient
libapparmor1:arm64: /usr/lib/aarch64-linux-gnu/libapparmor.so.1
libapparmor1:arm64: /usr/share/doc/libapparmor1/changelog.Debian.gz
man-db, isc-dhcp-client: /etc/apparmor.d

#4 Re: DIY » Removing Apparmor » 2024-09-04 10:51:50

Thanks. I am adequately-ish backed up, but the problem is this is on a Raspberry Pi which is somewhat inaccessible, which makes taking a new image of the card quite fiddly. Not to mention how long it takes to image a 64Gb card... So it's not something I do very frequently; most recent back-up was made yesterday and I've done a fair bit of work on it since then. I guess I could copy just those folders back onto the card if I bork it, though physically retrieving it is a bit of a hassle.

#5 DIY » Removing Apparmor » 2024-09-04 09:50:04

Lomax
Replies: 9

Hi all,

I've purged apparmor and added security=none to kernel params. I've also deleted /etc/apparmor.d and /var/cache/apparmor. But I still have lots of /proc/[some pid]/task/[some pid]/attr/apparmor directories as well as a /sys/module/apparmor directory - can I safely rm -rf these as well?

#6 ARM Builds » Mini/Net install for RPi3 » 2024-08-24 21:50:04

Lomax
Replies: 0

I was surprised that the Devuan Daedalus image for the Pi3 unzipped to 2.4Gb - is there anywhere I can find a mini/net install image? Also, upon booting it I am presented with four skulls in place of the four raspberries, which hardly instils confidence...

This is the image I downloaded: https://arm-files.devuan.org/RaspberryP … 4-0240.zip

#7 Re: Desktop and Multimedia » Firefox-esr Audio through ALSA Alone » 2024-03-05 00:47:18

That prompted me to take a look. After nearly a decade of silence there was a new release of xfce4-mixer last year (4.18), with a massive changelog. Not sure what that means in terms of being able to use it with Daedalus & ALSA, but perhaps we've been missing out!?

#8 Re: Desktop and Multimedia » Firefox-esr Audio through ALSA Alone » 2024-03-04 22:36:10

Yes, sorry, I should have mentioned that it's in the Devuan repo!

It's a nice app, and only uses 43kb RAM. I have added it to my XFCE session autostart, but for some reason the --tray switch is ignored so I have to manually close it (to tray) after every log-in. The minimised icon appears in the "Status Tray Plugin", so make sure that's added to the XFCE panel, or you won't see it.

I've also added keyboard shortcuts for the volume control buttons on my Thinkpad, so that they work with ALSA:

Audio raise volume:

amixer -q set Master '5%+'

Audio lower volume:

amixer -q set Master '5%-'

Audio mute:

amixer -q set Master toggle

#9 Re: Desktop and Multimedia » Firefox-esr Audio through ALSA Alone » 2024-03-04 19:03:28

Just to contribute another data point, for me Firefox 115.7.0 ESR audio "just works" in Devuan Daedalus with Pulseaudio removed and ALSA as the only sound subsystem. And a tip to anyone who misses having a GUI volume control & mixer: install QasMixer:

IKPoH9w.png

#10 Re: Desktop and Multimedia » [SOLVED] GUI mixer in Daedalus » 2023-02-12 17:21:15

Just want to throw another option in the mix(!): QasMixer Available in the repos, comes with panel/tray support built in. Don't like the un-themed skeuomorphic Qt interface much, but I've seen worse.

jFrJnFm.png

#11 Re: ARM Builds » raspberry pi3 chimaera install "from scratch" » 2023-01-31 15:45:55

Camtaf wrote:

https://git.devuan.org/devuan-sdk/arm-sdk.git

This hasn't been updated for a year and does not appear to work on Devuan Daedalus:

$ source sdk
-bash: typeset: -U: invalid option
typeset: usage: typeset [-aAfFgiIlnrtux] name[=value] ... or typeset -p [-aAfFilnrtux] [name ...]
-bash: typeset: -U: invalid option
typeset: usage: typeset [-aAfFgiIlnrtux] name[=value] ... or typeset -p [-aAfFilnrtux] [name ...]
-bash: typeset: -U: invalid option
typeset: usage: typeset [-aAfFgiIlnrtux] name[=value] ... or typeset -p [-aAfFilnrtux] [name ...]
-bash: typeset: -U: invalid option
typeset: usage: typeset [-aAfFgiIlnrtux] name[=value] ... or typeset -p [-aAfFilnrtux] [name ...]
-bash: zmodload: command not found
-bash: zmodload: command not found
-bash: zmodload: command not found
-bash: zmodload: command not found
-bash: autoload: command not found
-bash: colors: command not found
-bash: /home/ola/Sources/arm-sdk/lib/zuper/zuper: line 115: syntax error near unexpected token `say'
-bash: /home/ola/Sources/arm-sdk/lib/zuper/zuper: line 115: `function _message say act() {'
-bash: typeset: -h: invalid option
typeset: usage: typeset [-aAfFgiIlnrtux] name[=value] ... or typeset -p [-aAfFilnrtux] [name ...]
-bash: typeset: -U: invalid option
typeset: usage: typeset [-aAfFgiIlnrtux] name[=value] ... or typeset -p [-aAfFilnrtux] [name ...]
-bash: func: command not found
-bash: func: command not found
-bash: func: command not found
-bash: func: command not found
-bash: sdk: line 141: syntax error: unexpected end of file

All requirements installed, I think:

$ sudo apt-get install curl git wget qemu-user-static build-essential rsync gcc-arm-none-eabi gcc-multilib lib32z1 u-boot-tools device-tree-compiler lzop dosfstools vboot-utils vboot-kernel-utils libftdi-dev libfdt-dev swig libpython3-dev bc bison flex libssl-dev zsh sudo cgpt parted xz-utils

Any other options?

Edit: I'm looking for the equivalent of a mini.iso for the Pi 3A+, or if it's a complete system image one without any cruft (no Xorg, XFCE etc). Also: trust is an issue. Debian? Might as well go with Raspbian then. It's Systemd I want rid of.

#12 Re: Devuan » Meet the Daedalus sapphire theme » 2022-07-21 12:32:50

Definitely prefer the second (light on dark) version. Nice colours!

#13 Re: Devuan » Debian has fallen. What now? » 2021-10-14 21:38:06

golinux wrote:
cafinux wrote:

So yes I'm putting my hand up if something needs doing . . .

perhaps fix a bug

This prompted me to have a look at the bug tracker, but I can't even figure out how to find any relevant bug reports, which perhaps disqualifies me before I even started. All the packages I looked at simply say "There is no maintainer for [package]. This means that this package no longer exists (or never existed). Please do not report new bugs against this package." - and the reports say (correctly) that the error is upstream with Debian. I imagine this will be the case with the vast majority of bugs. Is there a list of bugs that are actually with Devuan, and where it's worth looking to see if one can help?

#15 Re: Installation » SOLVED: Issues using "live" install on Thinkpad T410 » 2021-02-04 14:57:40

Seriously though

The issue appears to relate to a hand-off from xfce4-power-manager to systemd/logind, which is controlled by a hidden xfconf property that didn't exist on this machine (possibly because it does not have systemd installed). Adding that property and setting it to "false" hands back control to xfce4-power-manager and everything works as it should. Perhaps something for the devs to look into; maybe Devuan should set this property by default?

Would be interesting to hear what the Devuan gods say about this?

#19 Re: Installation » SOLVED: Issues using "live" install on Thinkpad T410 » 2021-02-03 10:04:29

Ha! I think I found the problem - and by the smell only. Something smelled wrong with the xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-lid-switch messages in the xfce-power-manager --debug output, so I started digging in that spot. I soon found some interesting bug reports on the Xfce bug tracker, including this one:

Laptop lid action not respected
Xfce4-power-manager not respecting laptop lid setting.  Regardless of power manager setting (Switch off display or Lock screen), closing the lid always results in suspend on ac or battery.

Not quite the same issue I was experiencing, but close enough to be potentially relevant. At first I was disappointed that the proposed solution didn't seem to have any effect (xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -s false), but in comment #10 on that bug report someone says

Just in addition to the answers above, the setting didn't exist for me yet. I needed to create it.

He suggests

sudo xfconf-query -c xfce4-power-manager -n -t 'bool' -p /xfce4-power-manager/logind-handle-lid-switch -s false

but since xfce4-power-manager runs in the user context (started from Sessions and Start Up > Application Autostart) I ran the command without sudo - expecting to see a warning that the key already existed. But I got no such warning - and when I closed the lid afterwards the laptop suspended and locked. Multiple tests on battery & on AC, with multiple reboots, confirms that this indeed fixed the problem.

So the lessons learned are 1) xfce4-power-manager handles suspend and locking without involving any scripts in /etc/acpi - as indicated by the CheckPolicy condition in lid.sh 2) the acpi-support package is not needed (for this functionality anyway). 3) the issue appears to relate to a hand-off from xfce4-power-manager to systemd/logind, which is controlled by a hidden xfconf property that didn't exist on this machine (possibly because it does not have systemd installed). Adding that property and setting it to "false" hands back control to xfce4-power-manager and everything works as it should. Perhaps something for the devs to look into; maybe Devuan should set this property by default?

Edit: Just to be clear, I now only have two acpi events/scripts defined, one of which is my home made mic-mute function:

$ ls /etc/acpi
events  powerbtn-acpi-support.sh  thinkpad_micmute.sh

$ ls /etc/acpi/events
powerbtn-acpi-support  thinkpad_micmute

So the whole suspend & lock on lid close process takes place elsewhere (i.e. xfce4-power-manager), and all that digging in /etc/acpi only turned up a red herring. Smelly, but red.

#20 Re: Installation » SOLVED: Issues using "live" install on Thinkpad T410 » 2021-02-03 01:45:23

When I check the box in the power management applet that says "Lock screen when system is going for sleep", xfce4-power-manager --debug outputs this:

TRACE[xfpm-xfconf.c:216] xfpm_xfsession_property_changed_cb(): property /shutdown/LockScreen

TRACE[xfpm-xfconf.c:225] xfpm_xfsession_property_changed_cb(): Property modified: /shutdown/LockScreen

TRACE[xfpm-xfconf.c:203] xfpm_xfconf_property_changed_cb(): Property modified: /xfce4-power-manager/lock-screen-suspend-hibernate

TRACE[xfpm-xfconf.c:203] xfpm_xfconf_property_changed_cb(): Property modified: /xfce4-power-manager/logind-handle-lid-switch

TRACE[xfpm-manager.c:645] xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-power-key:handle-suspend-key:handle-hibernate-key

(xfce4-power-manager:7608): GLib-CRITICAL **: 00:53:09.746: g_error_free: assertion 'error != NULL' failed

And when I uncheck the checkbox I get:

TRACE[xfpm-xfconf.c:216] xfpm_xfsession_property_changed_cb(): property /shutdown/LockScreen

TRACE[xfpm-xfconf.c:225] xfpm_xfsession_property_changed_cb(): Property modified: /shutdown/LockScreen

TRACE[xfpm-xfconf.c:203] xfpm_xfconf_property_changed_cb(): Property modified: /xfce4-power-manager/lock-screen-suspend-hibernate

TRACE[xfpm-xfconf.c:203] xfpm_xfconf_property_changed_cb(): Property modified: /xfce4-power-manager/logind-handle-lid-switch

TRACE[xfpm-manager.c:645] xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch

(xfce4-power-manager:7608): GLib-CRITICAL **: 00:54:21.371: g_error_free: assertion 'error != NULL' failed

What's going on with handle-lid-switch in the output above?

I removed the acpi-support package (and rebooted) to reduce the number of moving parts, and had another look at the behaviour. If I close the lid with the box unchecked, the laptop suspends. If I close the lid with the box checked, nothing happens. If I press the suspend hotkey (Fn+F4) with the box checked, the laptop suspends and locks. If I press the suspend hotkey with the box unchecked, the laptop suspends. So the hotkey works exactly as it should, but the lidswitch doesn't. This is where I am after another long session - the battle continues tomorrow, and I will get this to work.

#21 Re: Installation » SOLVED: Issues using "live" install on Thinkpad T410 » 2021-02-02 23:40:50

No that didn't work - or at least not while xfce4-power-manager is running. I noticed that if I kill it then light-locker will lock the screen when I close the lid (because CheckPolicy now returns false in the acpi lid script). If xfce4-power-manager is running nothing at all happens when I close the screen. xfce4-power-manager --debug shows nothing when the lid is closed and opened.

Oh and I realised I made a mistake earlier; I shouldn't have run xfce4-power-manager --dump as root, this will give misleading results since it normally runs as the user.

#22 Re: Installation » SOLVED: Issues using "live" install on Thinkpad T410 » 2021-02-02 22:44:19

The plot thickens. If I leave sudo xfce4-power-manager --dump running while I close/open the lid I get messages like this:

(xfce4-power-manager:7459): xfce4-power-manager-WARNING **: 22:25:05.954: Screensaver lock command not set when attempting to lock the screen.
Please set the xfconf property /general/LockCommand in xfce4-session to the desired lock command

Which strengthens my suspicion that xfce4-power-manager is indeed where the problem lies. But:

$ xfconf-query -lc xfce4-session
/general/FailsafeSessionName
/general/SaveOnExit
/general/SessionName
/sessions/Failsafe/Client0_Command
/sessions/Failsafe/Client0_PerScreen
/sessions/Failsafe/Client1_Command
/sessions/Failsafe/Client1_PerScreen
/sessions/Failsafe/Client2_Command
/sessions/Failsafe/Client2_PerScreen
/sessions/Failsafe/Client3_Command
/sessions/Failsafe/Client3_PerScreen
/sessions/Failsafe/Client4_Command
/sessions/Failsafe/Client4_PerScreen
/sessions/Failsafe/Count
/sessions/Failsafe/IsFailsafe
/shutdown/LockScreen
/splash/Engine

There is no such xfconf property for xfce4-session, and not for root either:

$ sudo xfconf-query -lc xfce4-session
/general/FailsafeSessionName
/sessions/Failsafe/Client0_Command
/sessions/Failsafe/Client0_PerScreen
/sessions/Failsafe/Client1_Command
/sessions/Failsafe/Client1_PerScreen
/sessions/Failsafe/Client2_Command
/sessions/Failsafe/Client2_PerScreen
/sessions/Failsafe/Client3_Command
/sessions/Failsafe/Client3_PerScreen
/sessions/Failsafe/Client4_Command
/sessions/Failsafe/Client4_PerScreen
/sessions/Failsafe/Count
/sessions/Failsafe/IsFailsafe
/splash/Engine

Should I try to add it? And set it to, I dunno, light-locker-command -l?

#23 Re: Installation » SOLVED: Issues using "live" install on Thinkpad T410 » 2021-02-02 21:05:23

So I noticed something odd, on my X230 I have installed the acpi-support package (or something has pulled it in as a dependency), but this was not installed on the T410. It's really just a bunch of event definitions and handler scripts for /etc/acpi - including things like volume up/down, and lid close. So this is the mechanism my X230 uses to control the volume for example, which is why I don't need to add them as Application Shortcuts on that machine. BUT. Now that I have installed acpi-support on the T410, it still doesn't work without the Application Shortcuts, despite the event looking identical on the two systems (e.g. button/volumedown VOLDN 00000080 00000000 K). So something else is missing or getting in the way.

There's more. The acpi-support package also installs an event and support script for "lid" events - and this does get triggered when I open/close the lid (I moved my hommade acpi lid event handler out of the way first, of course), but it exits on the first condition:

/etc/acpi/lid.sh:

if { CheckPolicy || HasLogindAndSystemd1Manager; }; then
        exit
fi

Ok, so we don't have SystemD, it must be CheckPolicy which returns true then. Turns out CheckPolicy is just a list of power management utilities - including xfce4-power-manager - which, if present on the system, should handle the lid events.

/usr/share/acpi-support/policy-funcs:

...
CheckPolicy() {
        local PMS

        getXconsole
        PMS="/usr/bin/xfce4-power-manager /usr/bin/mate-power-manager /usr/lib/dalston/dalston-power-applet"
        pidof -x $PMS > /dev/null ||
        PowerDevilRunning ||
        GnomeSettingsDaemonPowerRunning
}
...

Or so the acpi script expects and happily exits. So I come back to xfce4-power-manager and not acpi as the likely culprit; hence the output of sudo xfce4-power-manager --dump above.

#24 Re: Installation » SOLVED: Issues using "live" install on Thinkpad T410 » 2021-02-02 20:48:19

sudo xfce4-power-manager --dump

** (xfce4-power-manager:7459): WARNING **: 20:37:14.848: Failed to get name owner: 
GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.xfce.PowerManager': no such name

** (xfce4-power-manager:7459): WARNING **: 20:37:14.849: Failed to get name owner: 
GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.freedesktop.PowerManagement': no such name

** (xfce4-power-manager:7459): WARNING **: 20:37:14.850: Failed to get name owner: 
GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.xfce.PowerManager': no such name

(xfce4-power-manager:7459): xfce4-power-manager-WARNING **: 20:37:14.850: Unable to connect to session manager : 
Failed to connect to the session manager: SESSION_MANAGER environment variable not defined

(xfce4-power-manager:7459): GLib-GObject-WARNING **: 20:37:14.981: ../../../gobject/gsignal.c:2523: 
signal 'Changed' is invalid for instance '0x55e8e96c81e0' of type 'GDBusProxy'

(xfce4-power-manager:7459): xfce4-power-manager-WARNING **: 20:37:15.026: could not map keysym 1008ffa8 to keycode

(xfce4-power-manager:7459): GLib-CRITICAL **: 20:37:15.047: g_error_free: assertion 'error != NULL' failed

** (xfce4-power-manager:7459): WARNING **: 20:37:15.048: No outputs have backlight property
xfce4-power-manager-Message: 20:37:15.089: Set kernel brightness switch to 0

(xfce4-power-manager:7459): xfce4-power-manager-WARNING **: 20:37:15.096: Failed to get keyboard max brightness level :
GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.UPower.KbdBacklight” on object at path 
/org/freedesktop/UPower/KbdBacklight
---------------------------------------------------
       Xfce power manager version 1.6.1
With policykit support
With network manager support
---------------------------------------------------
Can suspend: True
Can hibernate: True
Authorised to suspend: True
Authorised to hibernate: True
Authorised to shutdown: True
Has battery: True
Has brightness panel: True
Has power button: True
Has hibernate button: True
Has sleep button: True
Has LID: True

Does that look right to you?

Edit: A lot of the errors and warnings here come from the fact that, like an idiot, I ran the command with sudo. xfce4-power-manager should run in the user context and the root account (being disabled) likely misses many of the pieces which make it work.

#25 Re: Installation » SOLVED: Issues using "live" install on Thinkpad T410 » 2021-02-02 15:07:11

Seems I'm not alone experiencing a blank screen after resume: https://www.reddit.com/r/xfce/comments/ … umes_to_a/

The issue is that when "Lock screen when system is going to sleep" is selected, resuming from suspend takes me to a blank screen - essentially an active screensaver - on which I have to press a key again in order to wake up the computer to show the login screen.

Board footer

Forum Software