Logout cancelled by <program>
by Patrick O'Callaghan
Where is the magic setting to stop this happening? Is it specific to
each program or something more general? I'm using KDE on F32, if it
matters, and I'm getting this whenever I log out, either with Ctrl-Alt-
Del or with the menu option. It has started happening with qbittorrent
specifically, but I recently reset its configuration to fix a problem
so that might be the root cause. I have to explicitly exit the program
first.
poc
4 years
fedora 32: no hibernate/resume
by fedora
Hi everybody
Environment here:
[root@caprioli ~]# cat /etc/fedora-release
Fedora release 32 (Thirty Two)
[root@caprioli ~]#
root@caprioli ~]# uname -r
5.6.10-300.fc32.x86_64
[root@caprioli ~]#
[root@caprioli ~]# grub2-editenv - list
saved_entry=966c5755b3384d1192dbf3d3658c1e29-5.6.10-300.fc32.x86_64
kernelopts=root=UUID=3f218a1e-7f30-48b1-add4-fb17bff5a6b5 ro
resume=UUID=0d51db0e-8463-4741-8bbe-d907fb2b1cb2
boot_success=1
boot_indeterminate=0
[root@caprioli ~]#
[cellino@caprioli ~]$ cat /proc/cmdline
BOOT_IMAGE=(hd3,gpt5)/boot/vmlinuz-5.6.10-300.fc32.x86_64
root=UUID=3f218a1e-7f30-48b1-add4-fb17bff5a6b5 ro
resume=UUID=0d51db0e-8463-4741-8bbe-d907fb2b1cb2
[cellino@caprioli ~]$
suspend works fine on this machine, but hibernate does›nt. Another
installation on the same machine with fedora 31 hibernates/resumes
flawlessly.
I assume very much that when closing down for hibernate, no image is
created, because after booting up from (so to speak) hibernate, the last
lines in the journal are:
[root@caprioli ~]# journalctl -b -1
<snip>
May 10 09:47:53 caprioli.dyn.lan systemd[1]: Reached target Sleep.
May 10 09:47:53 caprioli.dyn.lan systemd[1]: Starting Hibernate...
May 10 09:47:53 caprioli.dyn.lan kernel: PM: Image not found (code -22)
May 10 09:47:53 caprioli.dyn.lan kernel: PM: hibernation: hibernation entry
May 10 09:47:53 caprioli.dyn.lan systemd-sleep[3134]: Suspending system...
lines 2285-2371/2371 (END)
where the 3rd line tells me, that no image has been created and written
to swap.
The swap partition has 19.6 GB. The memory is 16 GB. I tried to give the
system a much larger (1 TB) swap partition, no joy.
I also tried to go down to runlevel 3 before hibernating, and then
resume into runlevel 3: no joy.
I also tried to adapt the dracut command-line.
[root@caprioli ~]# dracut --print-cmdline
root=UUID=3f218a1e-7f30-48b1-add4-fb17bff5a6b5 rootfstype=ext4
rootflags=rw,relatime
[root@caprioli ~]#
to include the resume parameter, but dracut did not even take my
dracut.conf file into consideration.
Because the Fedora 31 installation on the same machine works flawlessly
as far as hibernate/resume is concerned, I assume the BIOS parameters
are such, that suspending/resuming is allowed.
Does the Fedora 32 Kernel, by default, prevent hibernate/resume?
I am at a loss of ideas on how to investigate further.
Any hint is highly appreciated. Thank you very much.
suomi
4 years
FreeIPA Users cannot log in via GDM after upgrade to Fedora 32
by Thomas Letherby
Hello all,
I'm looking for some guidance for where to investigate next, I'm not sure
exactly where the issue is. I suspect I'll eventually need to put in a bug
report, but who to?
I upgraded a couple FreeIPA domain joined machines to Fedora 32 and after
the upgrade IPA users cannot log in via GDM into Gnome. I can Kinit users
fine, or log in via another TTY, but using GDM once you enter the password
the screen goes grey for a few seconds then returns to the login prompt.
I then rebuilt and successfully joined a machine, but on login I can see
the prompts once the password was entered for it creating the home dir etc,
but again it just returned me to the select a user screen.
I set debug logging for GDM and the log is here:
https://paste.centos.org/view/7386a981
Any suggestions of where to look next? I tried looking up the errors that I
could see, but I didn't see anything that fit quite what I was seeing.
Thanks for your help
Thomas
4 years
Is there a program to build gtk pop ups?
by ToddAndMargo
Hi All,
I am trying to figure out how to create a fill in form
with GTK. City, State, zip, ec. with defaults. You
fill in the form and press okay or cancel.
Is there such a program that will help me build this
and spurt out C code to use in my program?
Many thanks,
-T
4 years
Fedora 32 no MTA, CRON output and procmail
by Robert Moskowitz
I have been digging for how to do today and found something interesting:
Back in Fedora 20, there was no MTA!
https://www.mhonarc.org/archive/html/procmail/2014-01/msg00000.html
I worked on cron outbut via procmail way back then and used:
CRONDARGS=-m "/usr/bin/procmail -f cron"
So I just tried this and I have one problem with it. No DATE header.
So my new script is better, so far, than procmail. That is until
someone tells me how to get procmail to add a DATE header. Or maybe
better for CRON to put it in, and the DATE/TIME it started the task, not
when PROCMAIL would process the output.
thanks
BTW, Here is my current mycron script:
local]# cat mycron
#!/bin/sh
exec 3>> /var/spool/mail/$USER
currentDate=$(date +'%a %b %d %T %Y')
echo "From cron@localhost $currentDate" >&3
currentDate2=$(date +'%a, %e %b %Y %T %z (%Z)')
echo "Date: $currentDate2" >&3
(cat) >&3
echo "" >&3
Thanks for all the help getting to this point.
4 years
thank you - cron mailer script
by Robert Moskowitz
I want to thank all of you for your help and forbearance.
The script is working to my satisfaction, though I still have to see
tonight if it again throws an selinux alert for the logwatch cron task.
Next I will probably be active over on the procmail list as I rewrite
this using formail and procmail.
Here is the 'final' script:
local]# cat mycron
#!/bin/sh
# the sed commands only work if USER == MAILTO in crontab
exec 3>> /var/spool/mail/$USER
exec 100>/var/tmp/$USERlock.lock || exit 1
flock -w 120 100 || exit 1
currentDate=$(date +'%a %b %d %T %Y')
echo "From cron@localhost $currentDate" >&3
currentDate2=$(date +'%a, %e %b %Y %T %z (%Z)')
echo "Date: $currentDate2" >&3
echo "Message-ID: $(uuidgen)@$HOSTNAME" >&3
# (cat) >&3
(sed -e "/^From: / s/$USER/$USER@$HOSTNAME/"|sed -e "/^To: /
s/$USER/$USER@$HOSTNAME/") >&3
echo "" >&3
Again, thanks
4 years
Locking files to queue script
by Robert Moskowitz
My continuing educational journey.
It was pointed out to me that at least procmail will lock the mail file
whereas my script was not. So I decided to see what it would take to
add locking.
I found https://www.putorius.net/lock-files-bash-scripts.html, and part
of it is not making sense to me.
The following is suppose to be an example of making a script waiting
indefinitely for the an earlier instance to complete:
#!/bin/bash
exec 100>/var/tmp/testlock.lock || exit 1
flock 100 || exit 1
echo "Doing some stuff…"
echo "Sleeping for 30 seconds…"
sleep 30
I get the exec line's exit 1: If you can't get the file descriptor,
something is wrong and exit.
But the next line does not make sense. If you can't lock exit? How is
that indefinite?
I see the timed lock that uses:
flock -w 10 100 || exit 1
Which will wait 10 sec to lock the file and if not then quit.
So how does that first example work?
thanks
4 years
Autofs problem after upgrade to F32
by Frank Elsner
Hi,
I've upgraded my NFS providing system to Fedora 32 and now the client running
autofs can't mount as it could before the upgrade.
/var/log/messages shows:
May 11 10:48:25 siffux automount[3929]: attempting to mount entry /misc/Media
May 11 10:48:25 siffux automount[3929]: >> mount.nfs: an incorrect mount option was specified
File /etc/auto.misc reads:
Media -rw,soft,int,nfsvers=3 seymour:/misc/Media
What is wrong? What to do to solve the problem?
--Frank
4 years
AMD GPU not used by Fedora 31
by Sreyan Chakravarty
My laptop model is the HP-ac179tx.
Full Specs here: https://support.hp.com/in-en/document/c04919819
It has an AMD Radeon R5 M330 Graphics (2 GB DDR3 dedicated) GPU which is
currently not being used by Wayland Gnome in Fedora.
This is the output of:
$ lspci | grep -i VGA
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD
Graphics 520] (rev 07)
As you can see it is operating on the in-built Intel Graphics. I want all
display operations to happen through the AMD GPU, is that possible?
Now, I know video card drivers has always been a dicey topic, where there
is no stable drivers, just softwares that fail a little less than other
counterparts.
So, I have a few questions:
1) I am using Gnome-Wayland. Are there at all any video card drivers out
there for Wayland ?
2) To use video drivers is it necessary to switch to XOrg ?
3) Is it possible to transfer all display operations to the GPU ? Like my
desktop has the monitor connected to the GPU directly, which means all
display is handled by the GPU. Is something similar possible here?
I did try installing the AMDGPU-Pro Driver from here:
https://www.amd.com/en/support/kb/release-notes/rn-radpro-lin-16-40
But it fails with the error:
No match for argument: amdgpu
Error: Unable to find a match: amdgpu
Also Fedora was even listed in page, so I guess that means that it is not
supported.
Some relevant diagnostic information about my laptop:
$ sudo kmod list | grep amd
amdgpu 5308416 0
amd_iommu_v2 20480 1 amdgpu
gpu_sched 36864 1 amdgpu
ttm 122880 2 amdgpu,radeon
i2c_algo_bit 16384 3 amdgpu,radeon,i915
drm_kms_helper 233472 3 amdgpu,radeon,i915
drm 585728 13
gpu_sched,drm_kms_helper,amdgpu,radeon,i915,ttm
$ sudo rpm -qa | grep vulkan | sort
mesa-vulkan-drivers-19.2.8-1.fc31.x86_64
vulkan-loader-1.2.131.1-1.fc31.x86_64
$ sudo rpm -qa | grep mesa | sort
mesa-dri-drivers-19.2.8-1.fc31.x86_64
mesa-filesystem-19.2.8-1.fc31.x86_64
mesa-libEGL-19.2.8-1.fc31.x86_64
mesa-libgbm-19.2.8-1.fc31.x86_64
mesa-libGL-19.2.8-1.fc31.x86_64
mesa-libglapi-19.2.8-1.fc31.x86_64
mesa-libGLU-9.0.1-1.fc31.x86_64
mesa-libOpenCL-19.2.8-1.fc31.x86_64
mesa-libxatracker-19.2.8-1.fc31.x86_64
mesa-vulkan-drivers-19.2.8-1.fc31.x86_64
Lastly, I have LVM snapshotting enabled, so I should be able to try out
things so long as they don't involve my /boot and /boot/efi directories as
they are not included in the LVM.
Let me know what is the best course of action here.
Thanks.
--
Regards,
Sreyan Chakravarty
4 years
Re: fedora 32: no hibernate/resume
by fedora
Do you find anything in
journalctl -b 0
On Sun, May 10, 2020 at 5:36 PM fedora <fedora(a)ayni.com> wrote:
As I said: when I hibernate, I very much assume that no image file is
written to disk. the machine goes down as it should.
But when I hit any key on the keyboard, it does not resume but it fully
boots into Fedora 32.
I usually use the sleep botton, which is configured to invoke a
hibernate, but sometimes I also used systemctl hibernate, both no joy.
suomi
On 10/05/2020 13.59, Sreyan Chakravarty wrote:
> What happens when you try to hibernate ?
>
> Are you using the command :
> systemctl hibernate
> from the terminal?
>
> On Sun, May 10, 2020 at 5:24 PM fedora <fedora(a)ayni.com
> <mailto:fedora@ayni.com>> wrote:
>
> Selinux is disabled on this machine.
>
> [root@caprioli ~]# cat /etc/sysconfig/selinux
>
> # This file controls the state of SELinux on the system.
> # SELINUX= can take one of these three values:
> # enforcing - SELinux security policy is enforced.
> # permissive - SELinux prints warnings instead of enforcing.
> # disabled - No SELinux policy is loaded.
> SELINUX=disabled
>
>
> suomi
>
> On 10/05/2020 13.50, Sreyan Chakravarty wrote:
> >
> > On 5/10/20 5:18 PM, fedora wrote:
> >>
> >> I am using a swap partition.
> >
> >
> > Thats strange it should work out of the box. Have you
checked if
> there
> > are any SELinux related access problems ?
> >
>
>
>
> --
> Regards,
> Sreyan Chakravarty
--
Regards,
Sreyan Chakravarty
No , not that a am awavre of.
I compared the journalctl -b 0 with the same of the machine, where
hibernate/resume works, but I could not detect anything which would have
told me: that is the reason why suspend/resume does not work.
suomi
4 years