The officially official Devuan Forum!

You are not logged in.

#2351 Re: Other Issues » xdm - X Display Manager (on beowulf system with no dbus operational) » 2020-06-15 09:10:36

HevyDevy wrote:

I believe needs root rights as i have to install xserver-xorg-legacy and the modify  /etc/X11/Xwrapper.config
to have..
needs_root_rights=yes

Nope.

Devuan beowulf can now run rootless X OOTB (as long as the startx command is used) thanks to elogind smile

#2352 Re: Hardware & System Configuration » Backlight control problem » 2020-06-14 17:58:24

toru wrote:

so it is sounding like I MIGHT not be able to escape installing that proprietary driver.

Firmware is not the same as driver. Your AMD card will perform very poorly without the firmware.

toru wrote:

Hard drive controller?  That seems to be one I didn't know about.  I would be quite interested to hear more about that.

https://media.kasperskycontenthub.com/w … nswers.pdf

The risk level is very low for that sort of exploit, especially compared to something like Firefox or Chrom{e,ium}, but the motherboard hardware controllers contain blobs and some of them can be rather complex.

toru wrote:

...Both the non-backports version (20190114-2) and the beowulf-backports version (20190717-2~bpo10+1) fixed the backlight problem but then introduced another problem.  I tried to load Caja and the display glitched hard, distorting the windows to the point of the system being unusable.  tty1 worked fine still.  I tried to screenshot the problem but in the screenshots the problem isn't there.  I was able to take screenshots by just pressing prtsc and hitting enter.

Sounds like a compositor issue, check ~/.xsession-errors for clues.

If the backlight problem is now fixed then please mark the thread [SOLVED]. If you want to continue with the screen corruption issue then open a new thread, thanks.

#2353 Re: Other Issues » xdm - X Display Manager (on beowulf system with no dbus operational) » 2020-06-14 17:47:24

What about if you have ~/.xsession with just exec dwm and then add ~/.xsessionrc to source ~/.profile?

You probably shouldn't use xdm any way because it will run X under the root user. The startx command runs X under your normal user, which is much better.

#2354 Re: Other Issues » xdm - X Display Manager (on beowulf system with no dbus operational) » 2020-06-14 12:57:56

Oh really? In which case sorry for the misinformation. I've never actually tried xdm.

EDIT: hold on, did you source ~/.profile before the exec dwm line? Nothing in that file will be read after an exec statement.

And ~/.xsessionrc isn't really intended as a replacement for ~/.xsession, it is an adjunct to that file.

Devuan's display managers should automatically start whatever is set as the x-session-manager alternative with no need for further configuration, or /etc/alternatives/x-window-manager otherwise.

How did you install dwm? Is it the Devuan package or did you compile it yourself?

#2355 Re: Other Issues » I botched my login » 2020-06-14 10:49:45

I put "login incorrect linux" into the search box at startpage.com and this was the top result: https://www.linuxquestions.org/question … ed-881131/

Does that help?

#2356 Re: Installation » Beowulf and Legion y540 » 2020-06-14 10:47:11

walter wrote:

Head_on_a_Stick wrote:
Try either disabling the desktop compositor

Here I need a bit more detailed information about what you are suggesting.

If you're also experiencing the flicker in the console then it's nothing to do with the compositor or the DDX driver.

FWIW your X.Org log shows that X.Org's builtin modesetting driver is being used for your Intel iGPU.

I really don't know anything about NVIDIA (I would never give money to that company) so I can't help with that, sorry.

#2357 Re: Other Issues » xdm - X Display Manager (on beowulf system with no dbus operational) » 2020-06-14 10:41:21

If you place a file at ~/.xsessionrc it will be read by any and all display managers (and also the startx command) without any need for special hacks.

https://wiki.debian.org/Xsession

And you should use ~/.xsession instead of ~/.xinitrc (rather than as well as), at least according to the startx man page.

#2358 Re: Other Issues » Devuan and privacy » 2020-06-14 10:37:28

Marjorie wrote:

There is an /etc/cron.daily program 'popularity contest' that logs and reports weekly which packages you have/use.

It is optional (you can turn it off) and anonymous in intent.

Popcon is opt-in — the installer asks the user but the default reply is "no".

Marjorie wrote:

Firefox can be configured to provide telemetry (but you can turn it off) and it can check for updates to add-ons you have installed (also optional).

Mozilla's guide to enabling better privacy is here: https://support.mozilla.org/en-US/kb/ho … onnections

They're a bunch of deceptive bastards though because that page makes no mention of their Beacon API, disable that in about:config.

fw190 wrote:

The router is configured to use cloud flare so that covers the dns for me.

Not necessarily, Firefox are moving towards enabling DoH by default: https://support.mozilla.org/en-US/kb/fi … over-https

#2359 Re: Other Issues » Recommendations for Android Tethering Apps? » 2020-06-13 23:08:19

You don't need an application to tether, just bring the interface up and assign some addresses (eg, with dhclient).

#2360 Re: Hardware & System Configuration » Backlight control problem » 2020-06-13 23:05:35

toru wrote:

What happened with nano:
brightness:  [ Error writing lock file /sys/class/backlight/acpi_video0/.brightness.swp: Permission denied ]
max_brightness:  [ File '/sys/class/backlight/acpi_video0/max_brightness' is unwritable ]
actual_brightness:  [ File '/sys/class/backlight/acpi_video0/actual_brightness' is unwritable ]

Looks like nano was trying to write to a backup for the brightness file, not sure why. It works on my system if I ensure that it's saving to the actual backlight file.

Note that the max_brightness and actual_brightness files can't be changed so that result is expected (sysfs doesn't work like normal filesystems, it is virtual in nature and just exposes kernel values to user space).

No idea why my tee & echo suggestions didn't work though. At a guess it's because you don't have a kernel module loaded for your video card.

toru wrote:

And if I must, I will try firmware-amd-graphics.  I wish to avoid proprietary software if possible, but if there's no other way.

You're already loading non-free firmware from Devuan for your Intel wireless card. Your UEFI firmware, CPU management engine and hard drive controller are all running blobs anyway. There is no escape...

toru wrote:

Also, I found this.  Do you think this could solve my problem?  https://cannibalcandy.wordpress.com/201 … acpi-woes/

That's an interesting find but I'm pretty sure that the backlight will be controllable once you have a video driver loaded.

toru wrote:

Oh, also it looks like the same thing happened again with the amdgpu modification to 10-backlight.conf:

[    15.550] (II) AMDGPU(0): [KMS] drm report modesetting isn't supported.

AMD cards require KMS and that needs a kernel driver.

#2361 Re: Off-topic » system info practice script » 2020-06-13 15:44:08

HevyDevy wrote:
printf  $titles "os:" ; cat /etc/os-release | awk 'NR==1' | sed 's/............//;s/.//;s/.$//g'

You don't need cat:

printf  $titles "os:" ; awk 'NR==1' /etc/os-release | sed 's/............//;s/.//;s/.$//g'

Or with awk alone:

printf  $titles "os:" ; awk -F'"' '/PRETTY/{print $2}' /etc/os-release
HevyDevy wrote:
printf  $titles "pkgs:" ; dpkg -l | wc -l

That will return a slightly larger number because the dpkg output prints an information section and also lists some non-installed packages, try this instead:

printf  $titles "pkgs:" ; dpkg -l | grep -c '^ii'

#2362 Re: Hardware & System Configuration » Backlight control problem » 2020-06-13 11:22:49

toru wrote:
sudo nano /sys/class/backlight/acpi_video0/brightness

That's an unusual way to modify the file but it should work (it did when I tried it in my Alpine Linux box). What actually happened when you tried? Did you see any error messages?

Do my suggested echo commands work?

toru wrote:
$ lspci -k | grep -A3 VGA
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Stoney [Radeon R2/R3/R4/R5 Graphics] (rev da)
	Subsystem: Acer Incorporated [ALI] Stoney [Radeon R2/R3/R4/R5 Graphics]
	Kernel modules: amdgpu
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 15b3

Looks like the amdgpu module is available but not loaded. Without a loaded kernel module your system will fall back to the VESA driver, which will offer poor performance and may be the reason why you're having trouble with the backlight.

Try adding radeon.cik_support=0 amdgpu.cik_support=1 as a kernel command line parameter to force the amdgpu module for your card.

Also check that you have installed the firmware-amd-graphics package, that will be needed for full performance.

toru wrote:

Xorg.0.log:

[    16.992] (EE) no screens found(EE)

Your configuration file is forcing the wrong driver for your card, it needs amdgpu(4) rather than radeon(4).

#2363 Re: Hardware & System Configuration » Backlight control problem » 2020-06-12 22:15:24

toru wrote:

For some reason root can't write to any of these files:
/sys/class/backlight/acpi_video0/brightness
/sys/class/backlight/acpi_video0/max_brightness
/sys/class/backlight/acpi_video0/actual_brightness

You should show us the exact command(s) that you used to try to write to the file.

I'm guessing that you tried something like

sudo echo $value > /sys/class/backlight/acpi_video0/brightness

^ That won't work because the elevated privileges conferred by the sudo command are lost in the redirection operation (>).

Use this instead:

sudo tee /sys/class/backlight/acpi_video0/brightness <<<'$value'

Or

sudo sh -c 'echo $value > /sys/class/backlight/acpi_video0/brightness'

In both cases replace $value with the actual numerical value (with the maximum determined by the content of /sys/class/backlight/acpi_video0/max_brightness).

toru wrote:

I tried making a /usr/share/X11/xorg.conf.d/10-backlight.conf with this:

Section "Device"
       Identifier "Radeon"
       Driver "radeon"
#       Option "AccelMethod" "uxa"
EndSection

But then when I rebooted, it never went to lightdm.

Perhaps your card needs the amdgpu driver, check the LightDM & X.Org logs and also the output of

lspci -k | grep -A3 VGA

#2364 Re: Installation » ASCII repositories » 2020-06-12 16:50:40

F_Sauce wrote:

I'm too ashamed to tell what went wrong

No need to be embarressed, everybody makes mistakes :-)

If you share the problem and your solution here it may be useful if others also make the same mistake.

#2365 Re: Installation » Beowulf and Legion y540 » 2020-06-12 16:47:36

walter wrote:

I did not install Bumblebee so far, since I think that could cause the trouble to restart again.

Bumblebee is for when you want the Intel iGPU to run the display most of the time but use the NVIDIA card for graphically-intensive programs (with the optirun command), this will give the best battery life and is the intended mode of operation for Optimus devices.

Another alternative would be PRIME, which can be used for display offloading and suchlike.

In both cases "switchable graphics" will need to be selected in your machine's firmware ("BIOS") options.

walter wrote:

Any ideas of how to get the display into a non-flickering mode?

Try either disabling the desktop compositor or switching from the xserver-xorg-video-intel DDX driver to X's builtin modesetting version. Check the X.Org log to see which is being used at the moment.

Also check the log to see if any X.Org configuration files are being read — the NVIDIA proprietary drivers now integrate with X automatically and a configuration file may be breaking things for you.

#2366 Re: Installation » Beowulf on Lenovo X200s - several minor regressions compared to buster » 2020-06-12 16:35:17

kuleszdl wrote:

- LUKS password entry is not visible during bootup, the password has to be entered "blind" (I suspect KMS initialization of display and asking for password are in wrong order?)

I really don't know anything about LUKS but if your theory is correct then you can try to enable an early KMS start by adding the name of your video card kernel module to the list at /etc/initramfs-tools/modules and then update the initramfs to include it:

# update-initramfs -u -k all
kuleszdl wrote:

- Volume control is broken (volume keys do not work) and when launching it manually it only says "connecting to PulseAudio"

This has come up a few times recently, for example: http://dev1galaxy.org/viewtopic.php?pid=22481#p22481

I think the desktops now rely on a systemd user service to initialise PA but you can get the same effect by adding this line to a file at ~/.xsessionrc:

start-pulseaudio-x11

There is an XDG autostart file for PA but perhaps LXQt doesn't run those automatically, I don't use LXQt so I'm not sure about the specifics.

kuleszdl wrote:

- delayed startup due to network not being ready (I removed the dhcp-line for eth0 from

/etc/network/interfaces

as network is managed by LXQt's network manager anyways

If you're not using ifupdown then disable the networking service:

# update-rc.d networking disable

At least I think that's how you disable a sysvinit service, @community please correct me if I'm wrong here.

#2367 Re: Off-topic » Show your desktop (rebooted) » 2020-06-12 16:20:20

^ The aptitude command will probably offer to replace libsystemd0 with libelogind0.

Are we allowed to post non-Devuan screenshots here?

Here's my Alpine Linux desktop running sway with openrc-init as PID1:

20200612-17h18m06s-grim.png

The /usr/bin/sway executable is supplied with the setuid bit enabled but I've disabled that and installed & enabled elogind for a rootless desktop.

Secure Boot is also enabled, which is nice.

#2368 Re: Installation » Aptitude problem » 2020-06-08 22:03:58

Run

# apt update
# apt upgrade

Then answer "yes" when it asks.

See also http://dev1galaxy.org/viewtopic.php?id=3564

#2369 Re: Installation » Aptitude problem » 2020-06-08 21:30:54

That's the wrong URL: http://deb.devuan.org/merged/

And for future reference:

Roger wrote:

there are error messages about files not being downloaded

Please always post the full, verbatim error messages rather than a vague description — it's easier for you and less confusing for us.

#2370 Re: Off-topic » Learning Linux » 2020-06-08 20:50:08

GNUser wrote:

learn to recognize bashisms

The devscripts package supplies /usr/bin/checkbashisms to perform that function.

GNUser wrote:

Here is a tool to help you improve your existing shell scripts

That is available as a package: https://pkginfo.devuan.org/stage/beowul … 5.0-3.html

#2371 Re: Off-topic » Learning Linux » 2020-06-08 18:04:36

IBM's LPIC-1 exam-preparation tutorials are really good: https://developer.ibm.com/technologies/ … linux-101/

This one is for the command line: https://developer.ibm.com/tutorials/l-lpic1-103-1/

EDIT: nearly five years old but still mostly relevant.

#2372 Re: Hardware & System Configuration » [Solved] ALSA for Dummies? » 2020-06-08 17:05:29

Do you have pulseaudio installed? If so just install and run pavucontrol to set the default output device.

If you don't have pulseaudio installed then golinux's link has all the information you need to configure pure ALSA to set the default device.

seeker wrote:

ALSA for Dummies

As you appear to have an Intel sound card you can try this, it works for all the laptops I have ever owned:

# tee /etc/modprobe.d/alsa.conf <<<'options snd-hda-intel index=1'
# update-initramfs -u -k all

Then reboot.

If that doesn't work remove /etc/modprobe.d/alsa.conf, rebuild the initramfs again and post the output of

aplay -Ll

^ That's two ells, one upper case and one lower case.

#2373 Re: Devuan » Why apt still links to libsystemd0? » 2020-06-05 18:11:16

criminalscum wrote:

They are attempting (not necessarily successfully) to prevent shutdowns/reboots while package manager is running

Ah, interesting. Thanks!

criminalscum wrote:

i don't know how elogind is going to prevent shutdown/reboot if init system isn't systemd

It probably won't. AFAIUI the developers have made the decision to stub out most of the (unwanted) extra functionality offered by systemd.

#2374 Re: DIY » Linux ports of OpenBSD's ksh » 2020-06-05 16:57:43

I've added another port to the OP — it's called oksh and was created by Brian Callahan (also known as ibara), who is an OpenBSD developer.

#2375 Re: Devuan » Why apt still links to libsystemd0? » 2020-06-05 16:37:29

bgstack15 wrote:

would you know any of the motivations of the apt maintainers who made the choice to link apt to libsystemd0?

No but I would hazard a guess that it is related to the systemd timers now supplied with the package (or perhaps the new sandboxing feature).

Board footer

Forum Software