Samsung YP-M1 media player max_sectors should be set to 64

Bug #642176 reported by luc
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: media-player-info

When connecting a Samsun YP-M1 media player, the max_sector setting for USB is set to 240.
With this setting, attempting to put large files on the device hangs everything, as explained in the following thread: http://forums.cnet.com/5208-13973_102-0.html?threadID=366598.

Following the advices of this thread, I put the max_sector setting to 64 and everything went well.

Following the advices for bug #573219, I put the following line in /lib/udev/rules.d/40-usb-media-players.rules:

ATTRS{idVendor}=="04e8" , ATTRS{idProduct}=="5123" , ENV{ID_MEDIA_PLAYER}="samsung-yepp_yp-m1", RUN+="/bin/sh -c '/bin/echo 64 > /sys/block/%k/device/max_sectors'"

This did the trick and when I connect the device, max_sector is automatically set to the good value. In fact, it is set for both the device corresponding to the main memory of the player and also for the device corresponding to the SC card, which is exactly what I wanted.
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: luc 1751 F.... pulseaudio
CRDA: Error: [Errno 2] Aucun fichier ou dossier de ce type
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfe9fc000 irq 47'
   Mixer name : 'SigmaTel STAC9228'
   Components : 'HDA:14f12c06,14f1000f,00100000 HDA:10951392,1028022f,00100000 HDA:83847616,1028022f,00100402'
   Controls : 22
   Simple ctrls : 12
DistroRelease: Ubuntu 10.10
HibernationDevice: RESUME=UUID=f824963e-7a97-4b18-bd93-ea58fea1ecfd
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha i386 (20100925)
MachineType: Dell Inc. Inspiron 1525
Package: linux (not installed)
ProcCmdLine: BOOT_IMAGE=/vmlinuz-2.6.35-22-generic root=/dev/mapper/hostname-root ro quiet splash
ProcEnviron:
 LANG=fr_FR.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Regression: No
RelatedPackageVersions: linux-firmware 1.38
Reproducible: Yes
Tags: maverick kernel-config needs-upstream-testing
Uname: Linux 2.6.35-22-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 10/16/2008
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A16
dmi.board.name: 0U990C
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA16:bd10/16/2008:svnDellInc.:pnInspiron1525:pvr:rvnDellInc.:rn0U990C:rvr:cvnDellInc.:ct8:cvr:
dmi.product.name: Inspiron 1525
dmi.sys.vendor: Dell Inc.

summary: - Samsun YP-M1 media player max_sectors should be set to 64
+ Samsung YP-M1 media player max_sectors should be set to 64
Revision history for this message
Martin Pitt (pitti) wrote :

m-p-i is not supposed to do workarounds like this, so I am reassigning this to the kernel. Thanks!

affects: media-player-info (Ubuntu) → linux (Ubuntu)
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Hi luc,

Please be sure to confirm this issue exists with the latest development release of Ubuntu. ISO CD images are available from http://cdimage.ubuntu.com/daily/current/ . If the issue remains, please run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux 642176

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

    [This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: needs-kernel-logs
tags: added: needs-upstream-testing
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
luc (luc-maisonobe) wrote : AcpiTables.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
luc (luc-maisonobe) wrote : AlsaDevices.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote : AplayDevices.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote : BootDmesg.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote : Card0.Codecs.codec.1.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote : Card0.Codecs.codec.2.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote : CurrentDmesg.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote : IwConfig.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote : Lspci.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote : Lsusb.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote : PciMultimedia.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote : ProcInterrupts.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote : ProcModules.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote : RfKill.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote : UdevDb.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote : UdevLog.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote : WifiSyslog.txt

apport information

Revision history for this message
luc (luc-maisonobe) wrote :

The requested information has been provided more than one month ago, but the bug is still marked as incomplete.
Could someone tell me if I missed something ?

Thanks

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.