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-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.

#377 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!

#378 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

#379 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

#380 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.

#381 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.

#382 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.

#383 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.

#384 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.

#385 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.

#386 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).

#387 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?

#388 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.

#389 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.

#390 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.

#391 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.

#392 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.

#393 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.

#394 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.

#395 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.

#396 Re: Hardware & System Configuration » anacron not working in ascii [SOLVED] » 2018-02-24 17:54:40

I got it. Even after uninstalling the live-config* packages, the diversion that it created continues to live in dpkg, so one has to manually remove the diversion:

root@thinkpad:/home/bruno# dpkg-divert --list | grep anacron
diversion of /usr/sbin/anacron to /usr/sbin/anacron.orig.anacron by live-config

root@thinkpad:/home/bruno# dpkg-divert --remove /usr/sbin/anacron

root@thinkpad:/home/bruno# dpkg-divert --list | grep anacron
# no hits

Now I reinstall anacron and /usr/sbin/anacron is a real file as expected smile

#397 Re: Hardware & System Configuration » anacron not working in ascii [SOLVED] » 2018-02-24 15:29:38

No luck. I purged all three live-config packages and ancron, rebooted, and reinstalled anacron. Similar shenanigans (at least now the symlink is pointing to something sensible and not /bin/true):

bruno@thinkpad:~$ ls -l /usr/sbin/anacron
lrwxrwxrwx 1 root root 30 Feb 24 01:36 /usr/sbin/anacron -> /usr/sbin/anacron.orig.anacron
bruno@thinkpad:~$ dpkg -S anacron.orig.anacron
diversion by live-config from: /usr/sbin/anacron
diversion by live-config to: /usr/sbin/anacron.orig.anacron

This is my /etc/apt/sources.list:

deb http://pkgmaster.devuan.org/merged/ ascii main 
deb http://pkgmaster.devuan.org/merged/ ascii-security main
deb http://pkgmaster.devuan.org/merged/ ascii-updates main

fsmithred, are you sure that your /usr/sbin/anacron is a real file and not a link? If you are sure, what am I missing?

What is this live-config business anyway? Can I get rid of it?

#398 Re: Hardware & System Configuration » anacron not working in ascii [SOLVED] » 2018-02-24 15:19:44

Thank you for the suggestions, fsmithred.

I have begun solving the mystery:

bruno@thinkpad:~$ dpkg -S anacron.orig.anacron
diversion by live-config from: /usr/sbin/anacron
diversion by live-config to: /usr/sbin/anacron.orig.anacron

bruno@thinkpad:~$ dpkg -l | grep live-config
ii  live-config                 5.20170112+deb9u1      all          Live System Configuration Components
ii  live-config-doc           5.20170112+deb9u1      all          Live System Configuration Components (documentation)
ii  live-config-sysvinit     5.20170112+deb9u1      all          Live System Configuration Components (sysvinit backend)

I did not install any live-config packages, so they must have come with Miyo. I will try uninstalling live-config* and reinstalling anacron.

#399 Re: Hardware & System Configuration » anacron not working in ascii [SOLVED] » 2018-02-24 06:40:03

After much snooping around, I discovered that /usr/sbin/anacron was a link to /bin/true (???)
The anacron package actually installs /usr/sbin/anacron.orig.anacron (???)
This fixed the issue: sudo ln -fs /usr/sbin/anacron.orig.anacron /usr/sbin/anacron

Very, very strange.

#400 Hardware & System Configuration » anacron not working in ascii [SOLVED] » 2018-02-24 06:17:03

GNUser
Replies: 5

Anacron is not running on my laptop, regardless of whether it is plugged in or not.

Here is my /etc/anacrontab (it is the same as on my Devuan Jessie partition):

# /etc/anacrontab: configuration file for anacron

# See anacron(8) and anacrontab(5) for details.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
HOME=/root
LOGNAME=root

# These replace cron's entries
1	5	cron.daily	run-parts --report /etc/cron.daily
7	10	cron.weekly	run-parts --report /etc/cron.weekly
@monthly	15	cron.monthly	run-parts --report /etc/cron.monthly

# bruno
7 1 maintenance /opt/scripts/jobs-maintenance

Here is /etc/default/anacrontab:

# If set to "yes", start anacron even when on battery power.  By
# default, the /etc/init.d/anacron script tries to avoid running
# anacron unless on AC power, so as to avoid running down the battery.
# (Things like the locate updatedb cause a lot of I/O.)

ANACRON_RUN_ON_BATTERY_POWER=yes

I already did this, too (I had to do it in Jessie in order for anacron to run while on battery power):

$ sudo chmod a-x /usr/lib/pm-utils/power.d/anacron

Looking at /var/log/syslog shows no entries by anacron. Also, /var/spool/anacron is an empty directory with no timestamps. I've tried rebooting and resuming from suspend, both on AC and battery power, and anacron gives no signs of life.

I have the 2.3-24 version installed. I also tried uninstalling it and installing the 2.3-23 version from Devuan Jessie and it made no difference.

Any ideas? Anacron is mission-critical for me.

Board footer

Forum Software