Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

Issue with kalarm 25.12.2

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
pygoscelis
Guru
Guru
Posts: 421
Joined: Sat Jun 07, 2003 8:20 pm

Issue with kalarm 25.12.2

  • Quote

Post by pygoscelis » Thu Mar 26, 2026 9:18 pm

I have a recent problem with kalarm. It won't play sounds.

When I edit an alarm and hit "Test", nothing happens. No sound and no error messages anywhere. But when I close the dialog, kalarm hangs and I have to kill it.

The only available audio backend is mpv.

I have no issues with other sound applications, including KDE ones.

Have anyone seen this? Is there a workaround? (Except using an external sound player command.)
Top
rab0171610
l33t
l33t
Posts: 721
Joined: Sat Dec 24, 2022 1:41 am

  • Quote

Post by rab0171610 » Fri Mar 27, 2026 1:06 am

First, are you on stable or testing?
Which version of kalarm are you using?
There are currently two in the gentoo repo, 25.12.3 (testing) and 25.12.2 (stable).
Open disclosure: I am using my own custom ebuild for kalarm version 25.12.2 so that I can avoid mpv. (I am using vlc as a sound backend.)
I am not able to replicate the issue you are having.
Have you tried different sound files?
(I usually stick to files that are in my home directory.)
Have you checked the volume level of 'Notification Sounds'?
SystemSettings -> Input & Output -> Sound
Check that the slide at the bottom labeled Notification Sounds under Playback Streams is not muted or that the volume
is not high enough.
This is not likely to be an issue since you are having trouble with freezing when trying to "try" a sound alarm.

Try running kalarm from the command line and see if there is any relevant ouput. Working normally, this is the only output that I see when setting an audio alarm and trying it:

Code: Select all

kalarm
org.kde.pim.kalarm: Wake from suspend: use RTC (no CAP_WAKE_ALARM capability)
Is this only happening when trying an audio alarm? Try a display alarm and see if there is any output or the same issue occurs.

Since you are likely using mpv for sound, are you able to play the same sound file you are trying to use for the audio alarm with mpv from the command line?
Top
pygoscelis
Guru
Guru
Posts: 421
Joined: Sat Jun 07, 2003 8:20 pm

  • Quote

Post by pygoscelis » Fri Mar 27, 2026 10:36 am

rab0171610 wrote:First, are you on stable or testing?Which version of kalarm are you using?
There are currently two in the gentoo repo, 25.12.3 (testing) and 25.12.2 (stable).
25.12.2
Open disclosure: I am using my own custom ebuild for kalarm version 25.12.2 so that I can avoid mpv. (I am using vlc as a sound backend.)
Please share your build!
I am not able to replicate the issue you are having.
Have you tried different sound files?
(I usually stick to files that are in my home directory.)
Have you checked the volume level of 'Notification Sounds'?
SystemSettings -> Input & Output -> Sound
Check that the slide at the bottom labeled Notification Sounds under Playback Streams is not muted or that the volume
is not high enough.
I did try several files. They are all playable by any audio player.

Moreover, kalarm doesn't play notification sounds at all. Other KDE apps do. I tried to play with Notification Sounds volume, doesn't help.
This is not likely to be an issue since you are having trouble with freezing when trying to "try" a sound alarm.

Try running kalarm from the command line and see if there is any relevant ouput. Working normally, this is the only output that I see when setting an audio alarm and trying it:

Code: Select all

kalarm
org.kde.pim.kalarm: Wake from suspend: use RTC (no CAP_WAKE_ALARM capability)
Is this only happening when trying an audio alarm? Try a display alarm and see if there is any output or the same issue occurs.
I also see this message. It happens on startup, even before any alarm is played. I also see some messages when I edit an alarm (any one, not just the sound):

Code: Select all

QPainter::begin: Paint device returned engine == 0, type: 2
QWidget::render: Cannot render with an inactive painter
QPainter::begin: Paint device returned engine == 0, type: 2
QWidget::render: Cannot render with an inactive painter
Unsupported return type 4097 QPixmap in method "grab"
Unsupported return type 4097 QPixmap in method "grab"
But they don't seem to break any other type of alarm.
Since you are likely using mpv for sound, are you able to play the same sound file you are trying to use for the audio alarm with mpv from the command line?
Yes, mpv from the command line works. In fact I replaced my sound alarms with command alarms that just run mpv.
Top
rab0171610
l33t
l33t
Posts: 721
Joined: Sat Dec 24, 2022 1:41 am

  • Quote

Post by rab0171610 » Fri Mar 27, 2026 11:21 am

I am not getting any of those QT errors when setting up alarms or testing them so I would think they are significant,
The only thing I can suggest is to figure out how to debug QT, this is done through an environment variable If I remember correctly.

Also, make sure your make sure you machine is updated, make sure you have updated all config files after emerge, and make sure to do a depclean and restart your machine. Check your package.mask to make sure you are not holding back any KDE or QT packages or masking anything that might cause issues.
I would also clear the cache in my home directory. When updating from KDE 5 to KDE 6 and introducing QT 6 libraries, many KDE users experienced issues with cached QT5 files. Deleting the files in .cache fixed the problem. This was not exclusive to Gentoo, it was seen in forums on multiple distros.
The best way to do that is when not logged in so that KDE doesn't continue to cache files there while you are logged in and during subsequent logout. Open a tty when at the login screen, in your case likely SDDM. Delete the files in cache and they should regenerate on log in as needed. As your user in a TTY (when not logged in):

Code: Select all

rm -rv ~/.cache/*
Log into KDE and see if you can replicate the issue.
If you continue to have problems, you can try to reinstall relevant QT/KDE packages overnight in case there was a bad build. This is rare but it has happened to me that it fixed a malfunctioning app or group of apps after update.
(If you wanted to be extreme you could rebuild your system omitting any large or unnecessary packages like gcc, the kernel, etc. Most people will probably frown upon that or not recommend it but it is relatively harmless and can give you peace of mind that you at least tried to eliminate everything.)
After all that, if you continue to have problems I would file a bug report.
https://packages.gentoo.org/packages/kd ... alarm/bugs
Top
rab0171610
l33t
l33t
Posts: 721
Joined: Sat Dec 24, 2022 1:41 am

  • Quote

Post by rab0171610 » Fri Mar 27, 2026 11:31 am

The ebuild:
I omitted the mpv dependency. I deleted this line:

Code: Select all

>=media-video/mpv-0.37.0:=[libmpv]
(VLC is explicitly installed on my machine so exists in the world file and is not solely a dependency of any other package.)
Under src_configure -> local mycmakeargs
I disabled LIBMPV enabled LIBVLC:

Code: Select all

-DENABLE_LIBMPV=OFF 
-DENABLE_LIBVLC=ON
This step may or may not have been necessary but it seems to have worked.
So far I have no issues and it is using VLC for sound again as it was before it changed recently. MPV is no longer installed as a dependency. I will monitor the situation as things progress.
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri Mar 27, 2026 1:34 pm

In the interest of making rab0171610's change a little easier to use, the below is a diff from the stock ebuild constructed from the instructions in the preceding post. I have not tested it.

Code: Select all

Remove hard dependency on mpv.
Add hard dependency on vlc.
Adjust CMake arguments accordingly.

--- a/kde-apps/kalarm/kalarm-25.12.2.ebuild
+++ b/kde-apps/kalarm/kalarm-25.12.2.ebuild
@@ -49,7 +49,7 @@
 	>=kde-frameworks/kwidgetsaddons-${KFMIN}:6
 	>=kde-frameworks/kwindowsystem-${KFMIN}:6[X?]
 	>=kde-frameworks/kxmlgui-${KFMIN}:6
-	>=media-video/mpv-0.37.0:=[libmpv]
+	media-video/vlc
 	pim? (
 		>=kde-apps/akonadi-${PVCUT}:6=
 		>=kde-apps/akonadi-contacts-${PVCUT}:6=
@@ -68,8 +68,8 @@
 
 src_configure() {
 	local mycmakeargs=(
-		-DENABLE_LIBMPV=ON # default upstream
-		-DENABLE_LIBVLC=OFF # OFF as long as it is Qt5-based
+		-DENABLE_LIBMPV=OFF # OFF as a local change
+		-DENABLE_LIBVLC=ON # ON as a local change
 		-DENABLE_AKONADI_PLUGIN=$(usex pim)
 		$(cmake_use_find_package speech KF6TextEditTextToSpeech)
 		-DWITHOUT_X11=$(usex !X)
A more flexible version would add USE flags for picking this, but my only goal here is to let OP test rab0171610's change.
Top
pygoscelis
Guru
Guru
Posts: 421
Joined: Sat Jun 07, 2003 8:20 pm

  • Quote

Post by pygoscelis » Sat Mar 28, 2026 6:20 pm

Thanks! Most of my packages are binary and I don't have anything outdated. Are you you using X11 or Wayland? I'm on X11.

I tried the ebuild and it worked like a charm. I also tried enabling both mpv and vlc, it works and lets the user to select the backend in the kalarm configuration dialog. It would be great if future ebuilds add a use flag for backend selection.
Top
rab0171610
l33t
l33t
Posts: 721
Joined: Sat Dec 24, 2022 1:41 am

  • Quote

Post by rab0171610 » Sat Mar 28, 2026 6:28 pm

I'm using Wayland. I have not tried in X. Would you consider filing a bug report for a feature request and link to this post?
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Sat Mar 28, 2026 7:24 pm

This bug needs to be fixed upstream by kalarm developers. VLC is no solution as kalarm code relies on VLC-3, which pulls in Qt5 for many users, and VLC-4 as the only way forward breaks kalarm again.
Top
Post Reply

9 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic