The officially official Devuan Forum!

You are not logged in.

#376 Re: Desktop and Multimedia » alternative to mate-power-manager for ascii? [SOLVED] » 2018-03-03 15:05:14

I also have "main", "ascii-security main", and "ascii-updates main", but the http part is different. I don't have access to the machine now, so will provide the http part later. Mate-power-manager is definitely not available for installation, but it seems my sources.list may be the culprit.

#377 Re: Desktop and Multimedia » alternative to mate-power-manager for ascii? [SOLVED] » 2018-03-03 00:36:42

Hey, different strokes for different folks. MATE is free software and, in my opinion, the pieces that work work well and stay out of my way.

I tried XFCE when I first switched to Devuan and found it just isn't as polished as MATE. For instance, I spent weeks patching Thunar and xfdesktop just to get basic niceties that I get out-of-the-box with Caja.

If/when MATE becomes contrib or non-free (or if it starts pushing me around and breaking my stuff like systemd), I will gladly give it the boot.

#378 Re: Hardware & System Configuration » "Authentication failure" and no login prompt in tty1-tty6 [SOLVED] » 2018-03-02 00:30:15

By trial and error and a little luck, I was able to figure it out: My /etc/inittab was messed up.

I changed this:

1:2345:respawn:/bin/login -f user </dev/tty1 >/dev/tty1 2>&1
2:23:respawn:/bin/login -f user </dev/tty2 >/dev/tty2 2>&1
3:23:respawn:/bin/login -f user </dev/tty3 >/dev/tty3 2>&1
4:23:respawn:/bin/login -f user </dev/tty4 >/dev/tty4 2>&1
5:23:respawn:/bin/login -f user </dev/tty5 >/dev/tty5 2>&1
6:23:respawn:/bin/login -f user </dev/tty6 >/dev/tty6 2>&1

...to this:

1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6

...and the problem went away. I don't know much about /etc/inittab so it was just a combination of duck-ducking and comparing the inittab in ascii to the one I had in my devuan jessie partition.

#379 Re: Hardware & System Configuration » "Authentication failure" and no login prompt in tty1-tty6 [SOLVED] » 2018-03-02 00:15:49

After logging in manually, I found something slightly different in one of the other (non-X) virtual consoles:

Authentication failure
INIT: Id "4" respawning too fast: disabled for 5 minutes
Authentication failure
INIT: Id "3" respawning too fast: disabled for 5 minutes
INIT: Id "1" respawning too fast: disabled for 5 minutes
INIT: Id "5" respawning too fast: disabled for 5 minutes
INIT: Id "6" respawning too fast: disabled for 5 minutes
Authentication failure
Authentication failure
INIT: Id "2" respawning too fast: disabled for 5 minutes
INIT: No more processes left in this runlevel
Authentication failure
Authentication failure
Authentication failure
Authentication failure
Authentication failure
Authentication failure

#380 Hardware & System Configuration » "Authentication failure" and no login prompt in tty1-tty6 [SOLVED] » 2018-03-01 22:38:44

GNUser
Replies: 2

I'm sorry to ask yet another question in this forum. I know I've asked a lot lately...

I'm on ASCII with MATE and lightdm. When I try to change from the console running my X session to any other virtual console (for example, by pressing Ctrl + Alt + F1), instead of getting the expected login prompt I'm seeing "Authentication failure" multiple times and no login prompt. Therefore, only tty7 with the X session is usable because I cannot login to tty1-tty6.

For example, after pressing Ctrl + Alt + F1 I see this:

Authentication failure

Authentication failure

_

There are actually many more than two "Authentication failure"s but you get the idea. The underscore represents the blinking cursor. There is no login prompt and pressing Enter has no effect. Therefore, there I can't do anything in tty1--all I can do is press Ctrl + Alt + F7 to return to the graphical session.

I tried disabling autologin in lightdm, but the same exact thing happens after manual login into the graphical session.

Any idea how to prevent the authentication failures and get a login prompt when I switch virtual consoles?

#381 Re: Desktop and Multimedia » alternative to mate-power-manager for ascii? [SOLVED] » 2018-03-01 18:22:00

It is quite interesting that cinnamon makes this happen without acpid (and presumably without polling). Perhaps cinnamon-settings-daemon offers similar functionality to acpid.

#382 Re: Hardware & System Configuration » ascii graphics glitch on laptop with integrated graphics [SOLVED] » 2018-03-01 16:29:00

No luck with 4.9.0-3, either. I tried most of the kernels available in ascii's main and backports repositories, and all of them give me more or less severe video artifacts.

I decided to stop fighting this and simply fetched and installed the kernel I was using on devuan jessie (linux-image-3.16.0-5-amd64). Lo and behold, no more video glitches. Woo-hoo!

#383 Re: Desktop and Multimedia » alternative to mate-power-manager for ascii? [SOLVED] » 2018-03-01 15:13:31

Here's what I did to get the screen to turn off when I close the lid. Turns out I don't need a power manager after all.

1. Create /etc/acpi/events/lid-acpi-support with this in it:

event=button/lid
action=/etc/acpi/lid.sh

2. Create /etc/acpi/lid.sh with this in it:

#!/bin/sh

export DISPLAY=:0.0
normal_user=$(users | xargs -n1 | grep -v root | uniq)

if grep closed /proc/acpi/button/lid/*/state; then
	cat /sys/class/backlight/acpi_video0/brightness >/tmp/brightness.save
	su $normal_user -c "xrandr --output LVDS-1 --off"
else
	su $normal_user -c "xrandr --output LVDS-1 --auto"
	cat /tmp/brightness.save >/sys/class/backlight/acpi_video0/brightness
fi

3. Make the script executable and restart acpid:

sudo chmod a+x /etc/acpi/lid.sh
sudo service acpid restart

#384 Re: Desktop and Multimedia » mtp device shown twice when plugged into ascii laptop » 2018-02-28 20:00:34

Gvfs-mtp-volume-monitor seems to be a buggy mess. There only consistent thing about it is that it always detects my phone twice. Otherwise, it is pretty unpredictable: It occasionally detects the phone and shows the two desktop icons, but doesn't actually mount the device. Occasionally the caja windows that pop up do not contain any files or directories, so I need to close the two windows then double-click on one of the two desktop icons. Occasionally, the device is detected but an error box pops up saying the device is unavailable. I give up on using gvfs for mounting my phone.

Here is my graybearded workaround:

1. sudo apt-get install jmtpfs

2. sudo chmod a-x /usr/lib/gvfs/gvfs-mtp-volume-monitor

3. Create /etc/udev/rules.d/80-mtp-mount.rules with this in it:

ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", RUN+="/bin/su bruno -c /opt/scripts/mtp-mount"

4. Create /opt/scripts/mtp-mount with this in it, then make it executable:

#!/bin/sh

# mount the device
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/scripts
export DISPLAY=:0.0
mkdir $HOME/Phone && jmtpfs $HOME/Phone && caja $HOME/Phone

# create a .desktop file to unmount the device
desktop_file=$HOME/Desktop/Phone-unmounter.desktop
cat << EOF > $desktop_file
[Desktop Entry]
Comment=Phone Unmounter
Exec=sh -c "fusermount -u ~/Phone; rm -r ~/Phone; rm $desktop_file"
Icon=media-eject
Terminal=false
Type=Application
Name[en_US]=Eject Phone
EOF
sleep 0.5 # to make sure .desktop exists
sudo chmod a+x $desktop_file

The above is as reliable as a faithful old dog, with never any surprises.

Folks experiencing flaky mounting of their Android phones (or other mtp device) can recycle the above workaround with only minimal modifications:
  - change "bruno" to your username in the udev rule
  - change the idVendor attribute in the udev rule to match your device's manufacturer

#385 Desktop and Multimedia » how to unmount fuse mount using desktop icon? » 2018-02-28 18:15:01

GNUser
Replies: 3

I'm looking for a workaround for the issue I reported here: https://dev1galaxy.org/viewtopic.php?id=1912 Bottomline is that gvfs is too complicated and I want out!

If I remove the executable bit from /usr/lib/gvfs/gvfs-mtp-volume-monitor, then gvfs stays out of my way so that I can mount my phone manually (or automatically via udev rule) with this:

jmtpfs ~/phone

I am then able to browse the phone's directory, add and remove files, etc.

The only problem now is that when it's time to unmount the phone, if I right-click on the phone's desktop icon and choose "Unmount" I get a nasty "Unable to unmount...Permission denied" pop-up. The only way to unmount the phone is to run this command (either via terminal or a keyboard shortcut):

fusermount -u ~/phone

Not being able to use the desktop icon is quite inconvenient--especially for my wife, who is used to removing everything using its desktop icon. Is there some way to force fuse to allow users to unmount using the desktop icon? I've gone around in circles for hours and can't seem to find a solution.

#386 Re: Desktop and Multimedia » mtp device shown twice when plugged into ascii laptop » 2018-02-28 14:13:54

Devuan Jessie and an updated Arch Linux only show the phone once when it's plugged in.

I tried re-installing all packages with gvfs in the name. Also, in caja's media preferences I unchecked "Browse media when inserted" and checked "Never prompt or start programs on media insertion". Still, two desktop icons show up on the desktop when the phone is connected--the only difference now is that two caja windows do not automatically pop up when I plug in the phone.

Therefore, the issue here is not that caja is detecting the device twice: gvfs is the one that's detecting the device twice. Alas, I think I have the right diagnosis but still have no clue regarding the proper treatment.

#387 Re: Desktop and Multimedia » some taskbar icon images shrunken and duplicated on ascii [SOLVED] » 2018-02-28 13:30:52

Thank you, fsmithred. I installed the version you provided and it handles taskbar icons well: The images on the icons are a bit smaller than what yad 0.27.0-1.1 shows, but centered on the icon and not duplicated.

#388 Re: Desktop and Multimedia » mtp device shown twice when plugged into ascii laptop » 2018-02-28 12:29:08

That's a good thought, but it only has an internal/simulated sd card. Also, Devuan Jessie only shows it once.

I have an old Arch Linux machine I've kept updated. Will try plugging into that and will update this thread with result.

#389 Re: Desktop and Multimedia » mtp device shown twice when plugged into ascii laptop » 2018-02-28 03:14:49

I did some snooping around and discovered some things:

a) A process called /usr/lib/gvfs/gvfs-mtp-volume-monitor is normally running in the background

b) If I kill the above process, my phone gets mounted/shown 0 times when I plug it in

c) If I then run /usr/lib/gvfs/gvfs-mtp-volume-monitor in the background again--or if I reboot--then we're back to "normal" behavior where my phone gets mounted/shown 2 times when I plug it in

I'm after the Goldilocks behavior where my phone gets mounted/shown 1 time when it is plugged in. I'm not sure what to try next.

#390 Re: Desktop and Multimedia » some taskbar icon images shrunken and duplicated on ascii [SOLVED] » 2018-02-28 00:19:37

I found a workaround: An older version of yad (0.27.0-1.1 instead of the 0.38.2-1 available in ascii repository) handles the taskbar icons perfectly.

The elevated credentials icon is still messed up, but I see that icon 1/10 of the time I see various icons placed in taskbar by yad, so I am happy with the workaround.

My gut feeling is that the buggy taskbar icons are due to a GTK3 version incompatibility between current yad/gnome-keyring and current mate-panel, but I wouldn't know how to test this hypothesis. If someone knowledgeable knows the actual reason and/or a proper fix, please do share.

#391 Re: Desktop and Multimedia » mtp device shown twice when plugged into ascii laptop » 2018-02-27 22:49:23

I really don't think the two are related, as one involves mate-panel and the other involves caja/gvfs.

Regarding the current issue, it does not affect thumbdrives and external hard drives, only my phone (which is unique in that it's my only mtp device).

#392 Desktop and Multimedia » mtp device shown twice when plugged into ascii laptop » 2018-02-27 21:35:08

GNUser
Replies: 9

I've been on ASCII with MATE for a few days, and am very impressed and happy with it. Everything is working beautifully!

The last little thing I'd like to fix is this issue: When I plug in my android phone (an MTP device), the system mounts/shows it twice. See screenshot of my desktop:

doubled.png

These are the gvfs packages installed:

bruno@thinkpad:~$ dpkg -l | grep gvfs
ii  gvfs:amd64        1.30.4-1   amd64        userspace virtual filesystem - GIO module
ii  gvfs-backends    1.30.4-1   amd64        userspace virtual filesystem - backends
ii  gvfs-bin              1.30.4-1   amd64        userspace virtual filesystem - binaries
ii  gvfs-common      1.30.4-1   all          userspace virtual filesystem - common data files
ii  gvfs-daemons     1.30.4-1   amd64        userspace virtual filesystem - servers
ii  gvfs-libs:amd64  1.30.4-1   amd64        userspace virtual filesystem - private libraries

I'd like to fix this so that the phone is mounted only once, but I have no idea how to do it. Can someone please point me in the right direction?

#393 Re: Hardware & System Configuration » ascii graphics glitch on laptop with integrated graphics [SOLVED] » 2018-02-26 14:22:04

I'm seeing kernels 4.9.0-3 through 4.9.0-6 available in the main repository.

When I look at all packages available in ascii-security, I see the same kernels represented:

$ grep ^Package: /var/lib/apt/lists/pkgmaster.devuan.org_merged_dists_ascii-security_main_binary-amd64_Packages | grep linux | grep amd64
---snip---
Package: linux-headers-4.9.0-3-amd64
Package: linux-headers-4.9.0-4-amd64
Package: linux-headers-4.9.0-5-amd64
Package: linux-headers-4.9.0-6-amd64
Package: linux-headers-amd64
Package: linux-image-4.9.0-3-amd64
Package: linux-image-4.9.0-4-amd64
Package: linux-image-4.9.0-5-amd64
Package: linux-image-4.9.0-6-amd64
Package: linux-image-amd64
---snip---

Therefore, it seems that all kernels kept in the main repository receive security upgrades through the security repository (if I'm drawing the wrong conclusion based on the above, someone please correct me).

I'll give 4.9.0-3 a shot. Thanks, Geoff.

#394 Re: Hardware & System Configuration » ascii graphics glitch on laptop with integrated graphics [SOLVED] » 2018-02-26 14:02:00

All machines in my household run devuan and receive unattended security upgrades. Would you happen to know whether non-default kernels receive security upgrades through the security repository?

I'd like to have my cake and eat it too, of course, but if I *have* to choose between automatic security upgrades and fixing a minor cosmetic issue then I'll take the upgrades.

#395 Re: Hardware & System Configuration » ascii graphics glitch on laptop with integrated graphics [SOLVED] » 2018-02-26 13:20:45

Just a quick follow-up:

It turns out that kernels 4.13 and 4.14 from backports both have a graphics issue on my machine: Sometimes, rather randomly, I get a horizontal line across my screen below which there is no video output whatsoever. The line moves up and down for a few seconds before it goes away. This issue is more serious than what I was experiencing with ascii's default 4.9 kernel, so I went back to 4.9.

#396 Desktop and Multimedia » some taskbar icon images shrunken and duplicated on ascii [SOLVED] » 2018-02-25 19:47:29

GNUser
Replies: 4

I am running ASCII with MATE desktop and noticed that some applications are having a hard time putting icons on the taskbar: Instead of an icon containing one reasonably-sized image, an icon with multiple miniature images shows up.

Here is my taskbar with two examples:

taskbar.png

The key icon was put there after I entered my credentials to add a printer. The little brown box was put there by one of my shell scripts using yad.

All the desktop themes and icon themes that I tried are similarly affected.

This is purely cosmetic, of course, but I was wondering if anyone knows how to fix this.

#397 Re: Hardware & System Configuration » ascii graphics glitch on laptop with integrated graphics [SOLVED] » 2018-02-25 13:02:17

Thanks, Geoff42. Using the 4.14 kernel from ascii-backports seems to have solved my problem.

#398 Re: Desktop and Multimedia » alternative to mate-power-manager for ascii? [SOLVED] » 2018-02-25 12:37:02

Thank you, Geoff42. I hadn't tried lxqt-powermanagement. I just did and it is very nice. Thanks for the recommendation.

#399 Desktop and Multimedia » alternative to mate-power-manager for ascii? [SOLVED] » 2018-02-25 03:52:54

GNUser
Replies: 14

I'm on ASCII with MATE and noticed that mate-power-manager is not available in the repository. I'm guessing it has some naughty dependencies.

Is there a lightweight substitute? I'm looking for something that would merely turn off my display when laptop lid is closed, turn it back on when lid is opened.

#400 Hardware & System Configuration » ascii graphics glitch on laptop with integrated graphics [SOLVED] » 2018-02-24 18:37:30

GNUser
Replies: 8

This is just a cosmetic issue, but it bugs me and I'm not sure how to troubleshoot, so I thought I'd ask for help.

I'm on a T400 with libreboot and integrated intel graphics. The issue is that every few minutes some lines quickly flash near the bottom and center of my laptop's display. The lines disappear after a fraction of a second and do not cause any problems other than being an eyesore. It seems to make no difference what applications are open. This does not happen on Devuan Jessie.

All my packages are from the main repository, and I have no third-party apps. In other words, this is not a fancy machine with default kernel and vanilla assortment of packages.

I'm using the default ascii kernel:

bruno@thinkpad:~$ uname -a
Linux thinkpad 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u2 (2018-02-21) x86_64 GNU/Linux

Here are the relevant bits from lshw:

  *-core
       description: Motherboard
       product: 2767EA9
       vendor: LENOVO
       physical id: 0
       version: ThinkPad T400
       serial: R8795K5
     *-firmware
          description: BIOS
          vendor: coreboot
          physical id: 0
          version: CBET4000 1403e19
          date: 09/02/2016
          size: 1MiB
          capacity: 8128KiB
          capabilities: pci pcmcia upgrade bootselect acpi
        *-display:1 UNCLAIMED
             description: Display controller
             product: Mobile 4 Series Chipset Integrated Graphics Controller
             vendor: Intel Corporation
             physical id: 2.1
             bus info: pci@0000:00:02.1
             version: 07
             width: 64 bits
             clock: 33MHz
             capabilities: pm cap_list
             configuration: latency=0
             resources: memory:e5900000-e59fffff

Any ideas what this could be or how to troubleshoot it? My guess is that it has something to do with ascii's newer linux kernel.

Board footer

Forum Software