Re: music player database

2009-08-29 Thread Matthias Clasen
On Sat, Aug 29, 2009 at 10:10 AM, Christophe Fergeau wrote: > Hi, > > 2009/7/10 Christophe Fergeau : >> I pushed those changes >> to http://cgit.freedesktop.org/~teuf/media-player-id/ in the >> "cleanups" branch, I'm about to leave on holidays until the 20th, so >> if someone wants to work on it in

Re: music player database

2009-08-29 Thread Christophe Fergeau
Hi, 2009/7/10 Christophe Fergeau : > I pushed those changes > to http://cgit.freedesktop.org/~teuf/media-player-id/ in the > "cleanups" branch, I'm about to leave on holidays until the 20th, so > if someone wants to work on it in the mean time, it's all there. I finally made a tarball out of thos

Re: music player database

2009-07-10 Thread Christophe Fergeau
Hi Kay, 2009/7/4 Kay Sievers : > > I also think we should replace: >  VendorID=0781 >  ProductID=7432;7433;7434;7435;74c0 > With something like: >  DeviceMatch=usb:0781:7432;usb:0781:7433;usb:0781:7434:usb:0815:4711 > or: >  DeviceMatch=usb:0781:7432|7433|7434;usb:0815:4711 Yep, that makes sense,

Re: music player database

2009-07-07 Thread Christophe Fergeau
2009/7/4 David Zeuthen : > (I actually that it would make sense to also allow people to put an .mpi > file in the root of the device itself at a well-known location, e.g. > $DEVICE_ROOT/.mpi-device-info.mpi - that way a device vendor can just > put that small file on the device at the factory and t

Re: music player database

2009-07-05 Thread David Zeuthen
On Sun, 2009-07-05 at 10:55 +0200, Martin Pitt wrote: > I don't think we should hardcode icon names in .mpi files. It'll cry > for trouble for different themes, KDE vs. GNOME, etc. Either > gvfs/solid should figure them out from the available data themselves, > or .mpi should only have "device clas

Re: music player database

2009-07-05 Thread Martin Pitt
Christophe Fergeau [2009-07-03 20:08 +0200]: > Depends :-/ See sony-k750i_mobile_phone.mpi : > Product=K750i mobile phone > Vendor=Sony Ericsson > > and sony-ericsson_k810i.mpi: > Product=Sony Ericsson K810i > Vendor=Sony Ericsson > > These names are not really helpful for multi-productid files,

Re: music player database

2009-07-04 Thread Kay Sievers
On Sat, Jul 4, 2009 at 18:31, David Zeuthen wrote: > On Fri, 2009-07-03 at 20:08 +0200, Christophe Fergeau wrote: >> Hi, >> >> 2009/7/3 David Zeuthen : >> > >> >   - the name to use in the UI >> >     - should I be using "$Vendor $Model" - seems I should only >> >       be using "$Model" cf >> > >>

Re: music player database

2009-07-04 Thread David Zeuthen
On Fri, 2009-07-03 at 20:08 +0200, Christophe Fergeau wrote: > Hi, > > 2009/7/3 David Zeuthen : > > > > - the name to use in the UI > > - should I be using "$Vendor $Model" - seems I should only > > be using "$Model" cf > > > >Product=Amazon Kindle > >Vendor=Amazon > >

Re: music player database

2009-07-03 Thread Christophe Fergeau
Hi, 2009/7/3 David Zeuthen : > >   - the name to use in the UI >     - should I be using "$Vendor $Model" - seems I should only >       be using "$Model" cf > >        Product=Amazon Kindle >        Vendor=Amazon Depends :-/ See sony-k750i_mobile_phone.mpi : Product=K750i mobile phone Vendor=Sony

Re: music player database

2009-07-03 Thread Christophe Fergeau
Hi, 2009/6/24 Martin Pitt : > Jonathan Matthew [2009-06-21 22:46 +1000]: >> I'm happy to work on some RB-friendly (c, glib) code for dealing with >> this.  Whether that's interesting to other music players is up to them. >> This feels like a case where the hassle of dealing with foreign code >> ou

Re: music player database

2009-07-03 Thread David Zeuthen
Hey, On Wed, 2009-06-24 at 19:31 +0200, Martin Pitt wrote: > Hello folks, > > time for a new update: > > http://people.ubuntu.com/~pitti/tmp/hal-udev-music-players/ > > Martin Pitt [2009-06-17 19:08 +0200]: > > Aside from that, I'll try and beautify the generated .ini files. > > They are now

Re: music player database

2009-06-25 Thread Jonathan Matthew
On Wed, Jun 24, 2009 at 04:53:33PM +0200, Martin Pitt wrote: > Hello Jonathan, > > Jonathan Matthew [2009-06-24 21:32 +1000]: > > > I found that the tag wasn't reliably applied for my device, > > apparently because immediately after the 'add' event, there was > > sometimes a 'change' event. Afte

Re: music player database

2009-06-24 Thread Martin Pitt
Hello folks, time for a new update: http://people.ubuntu.com/~pitti/tmp/hal-udev-music-players/ Martin Pitt [2009-06-17 19:08 +0200]: > Aside from that, I'll try and beautify the generated .ini files. They are now called '.mpi' (media player identification), and have nicer file names by defau

Re: music player database

2009-06-24 Thread Christophe Fergeau
2009/6/24 Martin Pitt : >> I found that the tag wasn't reliably applied for my device, >> apparently because immediately after the 'add' event, there was >> sometimes a 'change' event.  After changing the rules to process >> both adds and changes, the tag always shows up. > > That's strange. Could

Re: music player database

2009-06-24 Thread Martin Pitt
Hello Jonathan, Jonathan Matthew [2009-06-24 21:32 +1000]: > This is actually a bug in hal-info > (https://bugs.freedesktop.org/show_bug.cgi?id=22450) *blush*, fixed. Thanks for spotting. > I found that the tag wasn't reliably applied for my device, > apparently because immediately after the 'a

Re: music player database

2009-06-24 Thread Jonathan Matthew
On Sun, Jun 21, 2009 at 10:46:56PM +1000, Jonathan Matthew wrote: > On Wed, Jun 17, 2009 at 07:08:10PM +0200, Martin Pitt wrote: > > Hello all, > > > > I updated the script to produce unbroken udev rules now. I tested it > > with my Android G1 phone, it correctly gets an ID_MEDIA_PLAYER tag > > no

Re: music player database

2009-06-24 Thread Martin Pitt
Kay Sievers [2009-06-21 15:32 +0200]: > Martin, would it work, to add the usb ids to the .ini files and > generate the udev rule from that? Much like the sane-scanner and > gphoto stuff works today. Yes, that absolutely makes sense. I'll change the scripts accordingly soon and report back here. M

Re: music player database

2009-06-21 Thread Kay Sievers
On Sun, Jun 21, 2009 at 14:46, Jonathan Matthew wrote: > What's the plan for maintaining the device DB?  The .ini files currently > don't contain the information required to build the udev rules, and it > seems a bit odd to keep updating the .fdi file after HAL is gone. Yeah, HAL will go away and

Re: music player database

2009-06-21 Thread Jonathan Matthew
[apologies if this doesn't look like a proper reply; I wasn't subscribed until today] On Wed, Jun 17, 2009 at 07:08:10PM +0200, Martin Pitt wrote: > Hello all, > > I updated the script to produce unbroken udev rules now. I tested it > with my Android G1 phone, it correctly gets an ID_MEDIA_PLAYER

Re: music player database

2009-06-17 Thread Martin Pitt
Hello all, I updated the script to produce unbroken udev rules now. I tested it with my Android G1 phone, it correctly gets an ID_MEDIA_PLAYER tag now. I updated the files on http://people.ubuntu.com/~pitti/tmp/hal-udev-music-players/ Kay Sievers [2009-06-17 2:12 +0200]: > I guess: > SUBSYST

Re: music player database

2009-06-17 Thread Christophe Fergeau
2009/6/17 Kay Sievers : > > Do we define that there can be a list of .ini files? Or is one enough. A list might be nice for the case you mentionned earlier (phones handling mtp, UMS, ...). One ini file per protocol might make things simpler. I'd rename [Media] to [Audio] in the .ini file, and mayb

Re: music player database

2009-06-16 Thread Kay Sievers
On Tue, Jun 16, 2009 at 10:02, Martin Pitt wrote: > Hello again, > > Martin Pitt [2009-06-16  9:17 +0200]: >>   * TODO: nicer names for .ini files > > Done now, they use the vendor name as prefix and the model name if > available. Files updated. > >> This is a pretty comprehensive example of a "nor

Re: music player database

2009-06-16 Thread Martin Pitt
Hello again, Martin Pitt [2009-06-16 9:17 +0200]: > * TODO: nicer names for .ini files Done now, they use the vendor name as prefix and the model name if available. Files updated. > This is a pretty comprehensive example of a "normal" USB player: > > http://people.ubuntu.com/~pitti/tmp/hal-u

Re: music player database

2009-06-16 Thread Martin Pitt
Hello all, CC'ing the list. Kay Sievers [2009-06-11 21:12 +0200]: > Maybe we should merge only the basic classification in udev rules, and > then put all other properties in one or more .ini files per device, > stored them in a single directory at a well known location. And udev > merges only the