Problems with autodetect script camera.

Moderators: 666philb, Forum moderators

Post Reply
User avatar
Anacleto
Posts: 129
Joined: Sat Nov 14, 2020 2:37 pm
Location: Spain
Has thanked: 12 times
Been thanked: 20 times
Contact:

Problems with autodetect script camera.

Post by Anacleto »

Hi, this is my first post on this new puppy forum, so I'm happy to be here.

I have a problem and is that when I plugged the usb cable to the smartphone it takes time in recognize it and is a little annoying, but when I already disconnect the cable the pupautodetect program continues to open the window for a certain time. I try to disable the program inside /root / Startup looking for the script but I can't find the way to do it. I don't want this program to open, I want it to mount as File System Only.

If anyone know how to fix it, thank you very much in advance.

williams2
Posts: 1071
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 307 times

Re: Problems with autodetect script camera.

Post by williams2 »

I find pupautodetect annoying, when all I want to do is to charge my cell phone.

I edit the file /usr/sbin/pupautodetect, and put an exit command near the top of the file.
That is, I change this:

#!/bin/ash

to this:

#!/bin/ash
exit

and no more annoying popups.

If you do want to use the camera program, you can run
pupcamera

If you want to access the files on the phone, you can run
pupmtp

Or edit the pupautodetect file again and delete the exit command.

I am running Bionicpup64 at this moment, I think FossaPup is the same.

I don't want this program to open, I want it to mount as File System Only.

If you want to prevent the camera program from running but allow mounting the camera's file system, you can change this:

pupcamera &

to this:

#pupcamera &

That is, make that line a comment.

Edit: I commented the wrong line. Fixed.

User avatar
Anacleto
Posts: 129
Joined: Sat Nov 14, 2020 2:37 pm
Location: Spain
Has thanked: 12 times
Been thanked: 20 times
Contact:

Re: Problems with autodetect script camera.

Post by Anacleto »

Thanks williams2, and sorry to answer a little late, I've been busy.

You give me good idea, in my case I only want to access the files on the phone.

So I open the /usr/sbin/pupautodetect.

And I've done the following in the script :

case $1 in
camera)
pupcamera &
;;
android-device)
if [ "$(which pupmtp)" != "" ]; then

I change pupcamera & ---- for pupmtp &

case $1 in
camera)
pupmtp &
;;

It is not perfect, they continue to open a few windows after disconnecting the smartphone, but at the moment it serves me, I have to investigate a little more because they continue to open the windows, at the moment I am traveling but as soon as I have a little time I will investigate.

Maybe removing the & symbol in pupmtp &

Ok williams2 thank you so much for your help again.

See you.

User avatar
01101001b
Posts: 164
Joined: Wed Jul 15, 2020 10:57 pm
Location: Buenos Aires, Argentina
Has thanked: 642 times
Been thanked: 21 times

Re: Problems with autodetect script camera.

Post by 01101001b »

Hi @Anacleto! I hope this can help :thumbup:

''Most people make the mistake of thinking design is what it looks like [...] It's not [...]. Design is how it works.'' -- Steve Jobs

User avatar
Anacleto
Posts: 129
Joined: Sat Nov 14, 2020 2:37 pm
Location: Spain
Has thanked: 12 times
Been thanked: 20 times
Contact:

Re: Problems with autodetect script camera.

Post by Anacleto »

thank you for your answer 01101001b, in any case cancel line 12:

****Comment (prepend) line 12 of /etc/udev/rules.d/88-puppy-autodetect.rules with the hash symbol (#), and reboot.***

What I think I would do is avoid smartphone detection, and I don't want that.

I think the problem is that Barry Kauler's script is designed for another distribution of Puppy, and that's why on works properly here, or it was done with another type of smartphone, I have to investigate it, but I not had time to do it for the moment

Thanks 01101001b.

See you.

Post Reply

Return to “Fossapup64”