Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264883 - [PATCH][gnome-overlay]gnome-base/gnome-settings-daemon-2.26 gstreamer/alsa/oss plugin media-keys
Summary: [PATCH][gnome-overlay]gnome-base/gnome-settings-daemon-2.26 gstreamer/alsa/os...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-04 15:03 UTC by Romain Perier (RETIRED)
Modified: 2009-04-12 18:49 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Readd AcVolume support + fixs existing problems (gnome-settings-daemon-2.26.0-readd-AcmeVolume-support.patch,59.68 KB, patch)
2009-04-04 15:04 UTC, Romain Perier (RETIRED)
Details | Diff
ebuild version bump (gnome-settings-daemon-2.26.0.ebuild,2.31 KB, text/plain)
2009-04-04 15:06 UTC, Romain Perier (RETIRED)
Details
the new ebuild : removed alsa cflags (unused) , "bump" version (gnome-settings-daemon-2.26.0.ebuild,2.26 KB, text/plain)
2009-04-07 17:56 UTC, Romain Perier (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Romain Perier (RETIRED) gentoo-dev 2009-04-04 15:03:04 UTC
Hi,

as nirbeek asked me, i imported patch from upstream (#571145), corrected it , because there is a reject for plugins/media-keys/Makefile.am, and solved the bug, when we try to increase the volume when "Master" is muted. AcmeVolume is now completly working :).

The problem was found in gsd-media-keys-manager.c module in do_sound_action function, in the VOLUME_KEY_UP case statement, if the hardware is muted the first if is traited, and we have the volume at 0 so the second if is traited too and volume activated to 6, but the original patches didn't unmuted the hardware, so on the second call ONLY the first if is traited (vol != 0) and nothing happen ==> this is for that reason that the volume was blocked.

you'll find in attachment the patch which readd AcVolume support (and works correctly :) ) and the ebuild in version bump to add in the overlay.
Comment 1 Romain Perier (RETIRED) gentoo-dev 2009-04-04 15:04:13 UTC
Created attachment 187301 [details, diff]
Readd AcVolume support + fixs existing problems
Comment 2 Romain Perier (RETIRED) gentoo-dev 2009-04-04 15:06:12 UTC
Created attachment 187304 [details]
ebuild version bump
Comment 3 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-04 15:36:45 UTC
(In reply to comment #1)
> Created an attachment (id=187301) [edit]
> Readd AcVolume support + fixs existing problems
> 

Hey, this is cheating, this is the same patch with the Makefile problems fixed :)

Where's my fixed patch?!
Comment 4 Romain Perier (RETIRED) gentoo-dev 2009-04-04 16:27:08 UTC
did you read that i wrote ? :p
firstly, what are the bug that you found in this plugin ? expect the volume blocking when the hardware is muted (when the volume is at zero the volume blocked and it was impossible to increase it ) this is the only apparently bug (in use) that i found, so i fixed it (see gsd-media-keys-manager.c do_sound_action function line 751, i added a call to acme_volume_set_mute which solve the problem).

what are the other bug ? because the rest seems to be okay for me
Comment 5 Romain Perier (RETIRED) gentoo-dev 2009-04-04 16:32:29 UTC
Ps: i you want i can clean code, because there are some parts that are not optimal. Explain me why it's necessary to re-write all ? we just need to update or rewrite some parts of code yeah no problem, but rewrite all it's a little absurd no ? ;)
Comment 6 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-04 16:48:30 UTC
(In reply to comment #5)
> Ps: i you want i can clean code, because there are some parts that are not
> optimal. Explain me why it's necessary to re-write all ? we just need to update
> or rewrite some parts of code yeah no problem, but rewrite all it's a little
> absurd no ? ;)
> 

Yeah, just remove everything except gstreamer stuff, and do a general cleanup of the code (reducing ifdefs etc). Upstream says gstreamer was the only thing that was ever properly maintained.
Comment 7 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-04 16:50:31 UTC
(In reply to comment #6)
> Yeah, just remove everything except gstreamer stuff, and do a general cleanup
> of the code (reducing ifdefs etc). Upstream says gstreamer was the only thing
> that was ever properly maintained.
> 

Also, it'll probably be best to do this on the upstream bug so that they can include it and put it in for 2.26.1 or something.
Comment 8 Romain Perier (RETIRED) gentoo-dev 2009-04-04 17:06:39 UTC
yeah okay, now you are understandable :)
and i'll put my result patch on the upstream bug okay ;)
Comment 9 Romain Perier (RETIRED) gentoo-dev 2009-04-07 17:56:08 UTC
Created attachment 187617 [details]
the new ebuild : removed alsa cflags (unused) , "bump" version
Comment 10 Romain Perier (RETIRED) gentoo-dev 2009-04-07 17:56:53 UTC
Patch was submitted to the upstream bug, please have a look to it .
the patches works perfectly for me, please test it ;)

mrpouet
Comment 11 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-08 10:29:57 UTC
(In reply to comment #10)
> Patch was submitted to the upstream bug, please have a look to it .
> the patches works perfectly for me, please test it ;)
> 
> mrpouet
> 

Compiles, works, committed, pushed, thanks! :)