How to spoof a USB device's Product and Vendor ID?
Background to the problem
I have a "Canoscan Lide 120" scanner which is by all accounts a minor upgrade to "Canoscan Lide 110" (Same chipset, same specifications, etc.). The device driver for "Lide 120" is not available yet and the scanner is not yet supported by sane backend. Adding product and vendor ID of "Lide 120" to the sane backend does not help in detecting the scanner by the scanner applications.
The problem
Is there any way I can make my computer 'feel' as if it is connected to a "Lide 110" instead of a "Lide 120" by spoofing the USB product ID and vendor ID, so that I could use the driver for "Lide 110" with "Lide 120" ?
Conditions
I am on ubuntu 12.04
I do not wish to recompile kernel modules for the same and I am a non-programmer.
So folks, how do we spoof USB vendor and product IDs in ubuntu ?
12.04 drivers usb hardware scanner
add a comment |
Background to the problem
I have a "Canoscan Lide 120" scanner which is by all accounts a minor upgrade to "Canoscan Lide 110" (Same chipset, same specifications, etc.). The device driver for "Lide 120" is not available yet and the scanner is not yet supported by sane backend. Adding product and vendor ID of "Lide 120" to the sane backend does not help in detecting the scanner by the scanner applications.
The problem
Is there any way I can make my computer 'feel' as if it is connected to a "Lide 110" instead of a "Lide 120" by spoofing the USB product ID and vendor ID, so that I could use the driver for "Lide 110" with "Lide 120" ?
Conditions
I am on ubuntu 12.04
I do not wish to recompile kernel modules for the same and I am a non-programmer.
So folks, how do we spoof USB vendor and product IDs in ubuntu ?
12.04 drivers usb hardware scanner
I think it would be easier and cleaner to force the driver to accept different USB IDs as in crunchbang.org/forums/viewtopic.php?id=38471.
– David Foerster
Feb 8 '15 at 19:45
add a comment |
Background to the problem
I have a "Canoscan Lide 120" scanner which is by all accounts a minor upgrade to "Canoscan Lide 110" (Same chipset, same specifications, etc.). The device driver for "Lide 120" is not available yet and the scanner is not yet supported by sane backend. Adding product and vendor ID of "Lide 120" to the sane backend does not help in detecting the scanner by the scanner applications.
The problem
Is there any way I can make my computer 'feel' as if it is connected to a "Lide 110" instead of a "Lide 120" by spoofing the USB product ID and vendor ID, so that I could use the driver for "Lide 110" with "Lide 120" ?
Conditions
I am on ubuntu 12.04
I do not wish to recompile kernel modules for the same and I am a non-programmer.
So folks, how do we spoof USB vendor and product IDs in ubuntu ?
12.04 drivers usb hardware scanner
Background to the problem
I have a "Canoscan Lide 120" scanner which is by all accounts a minor upgrade to "Canoscan Lide 110" (Same chipset, same specifications, etc.). The device driver for "Lide 120" is not available yet and the scanner is not yet supported by sane backend. Adding product and vendor ID of "Lide 120" to the sane backend does not help in detecting the scanner by the scanner applications.
The problem
Is there any way I can make my computer 'feel' as if it is connected to a "Lide 110" instead of a "Lide 120" by spoofing the USB product ID and vendor ID, so that I could use the driver for "Lide 110" with "Lide 120" ?
Conditions
I am on ubuntu 12.04
I do not wish to recompile kernel modules for the same and I am a non-programmer.
So folks, how do we spoof USB vendor and product IDs in ubuntu ?
12.04 drivers usb hardware scanner
12.04 drivers usb hardware scanner
asked Feb 8 '15 at 19:34
JaiJai
2818
2818
I think it would be easier and cleaner to force the driver to accept different USB IDs as in crunchbang.org/forums/viewtopic.php?id=38471.
– David Foerster
Feb 8 '15 at 19:45
add a comment |
I think it would be easier and cleaner to force the driver to accept different USB IDs as in crunchbang.org/forums/viewtopic.php?id=38471.
– David Foerster
Feb 8 '15 at 19:45
I think it would be easier and cleaner to force the driver to accept different USB IDs as in crunchbang.org/forums/viewtopic.php?id=38471.
– David Foerster
Feb 8 '15 at 19:45
I think it would be easier and cleaner to force the driver to accept different USB IDs as in crunchbang.org/forums/viewtopic.php?id=38471.
– David Foerster
Feb 8 '15 at 19:45
add a comment |
1 Answer
1
active
oldest
votes
In this case it may help to add a udev rule for that USB ID:
Find USB vendor and product IDs with
lsusb
.
Add a file
/etc/udev/rules.d/40-libsane-canoscan-lide-120.rules
with the content:
ATTRS{idVendor}=="xxx", ATTRS{idProduct}=="xxx", ENV{libsane_matched}="yes"
Replace
xxx
with the appropriate IDs from step 1.
(Re-)connect the scanner.
Source: http://wiki.ubuntuusers.de/Scanner?rev=782618#Erkennungs-Probleme
Thank you for your response David. But sadly that did not help. sane-find-scanner still lists the vendor and product ID of the scanner as it did before the rule was made. ' scanimage -L ' is still unable to detect my scanner. The purpose of the question is also to know whether it is possible to spoof a USB device's product ID and vendor ID without recompiling kernel modules.
– Jai
Feb 10 '15 at 10:30
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f583206%2fhow-to-spoof-a-usb-devices-product-and-vendor-id%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
In this case it may help to add a udev rule for that USB ID:
Find USB vendor and product IDs with
lsusb
.
Add a file
/etc/udev/rules.d/40-libsane-canoscan-lide-120.rules
with the content:
ATTRS{idVendor}=="xxx", ATTRS{idProduct}=="xxx", ENV{libsane_matched}="yes"
Replace
xxx
with the appropriate IDs from step 1.
(Re-)connect the scanner.
Source: http://wiki.ubuntuusers.de/Scanner?rev=782618#Erkennungs-Probleme
Thank you for your response David. But sadly that did not help. sane-find-scanner still lists the vendor and product ID of the scanner as it did before the rule was made. ' scanimage -L ' is still unable to detect my scanner. The purpose of the question is also to know whether it is possible to spoof a USB device's product ID and vendor ID without recompiling kernel modules.
– Jai
Feb 10 '15 at 10:30
add a comment |
In this case it may help to add a udev rule for that USB ID:
Find USB vendor and product IDs with
lsusb
.
Add a file
/etc/udev/rules.d/40-libsane-canoscan-lide-120.rules
with the content:
ATTRS{idVendor}=="xxx", ATTRS{idProduct}=="xxx", ENV{libsane_matched}="yes"
Replace
xxx
with the appropriate IDs from step 1.
(Re-)connect the scanner.
Source: http://wiki.ubuntuusers.de/Scanner?rev=782618#Erkennungs-Probleme
Thank you for your response David. But sadly that did not help. sane-find-scanner still lists the vendor and product ID of the scanner as it did before the rule was made. ' scanimage -L ' is still unable to detect my scanner. The purpose of the question is also to know whether it is possible to spoof a USB device's product ID and vendor ID without recompiling kernel modules.
– Jai
Feb 10 '15 at 10:30
add a comment |
In this case it may help to add a udev rule for that USB ID:
Find USB vendor and product IDs with
lsusb
.
Add a file
/etc/udev/rules.d/40-libsane-canoscan-lide-120.rules
with the content:
ATTRS{idVendor}=="xxx", ATTRS{idProduct}=="xxx", ENV{libsane_matched}="yes"
Replace
xxx
with the appropriate IDs from step 1.
(Re-)connect the scanner.
Source: http://wiki.ubuntuusers.de/Scanner?rev=782618#Erkennungs-Probleme
In this case it may help to add a udev rule for that USB ID:
Find USB vendor and product IDs with
lsusb
.
Add a file
/etc/udev/rules.d/40-libsane-canoscan-lide-120.rules
with the content:
ATTRS{idVendor}=="xxx", ATTRS{idProduct}=="xxx", ENV{libsane_matched}="yes"
Replace
xxx
with the appropriate IDs from step 1.
(Re-)connect the scanner.
Source: http://wiki.ubuntuusers.de/Scanner?rev=782618#Erkennungs-Probleme
answered Feb 8 '15 at 19:58
David FoersterDavid Foerster
28.4k1366111
28.4k1366111
Thank you for your response David. But sadly that did not help. sane-find-scanner still lists the vendor and product ID of the scanner as it did before the rule was made. ' scanimage -L ' is still unable to detect my scanner. The purpose of the question is also to know whether it is possible to spoof a USB device's product ID and vendor ID without recompiling kernel modules.
– Jai
Feb 10 '15 at 10:30
add a comment |
Thank you for your response David. But sadly that did not help. sane-find-scanner still lists the vendor and product ID of the scanner as it did before the rule was made. ' scanimage -L ' is still unable to detect my scanner. The purpose of the question is also to know whether it is possible to spoof a USB device's product ID and vendor ID without recompiling kernel modules.
– Jai
Feb 10 '15 at 10:30
Thank you for your response David. But sadly that did not help. sane-find-scanner still lists the vendor and product ID of the scanner as it did before the rule was made. ' scanimage -L ' is still unable to detect my scanner. The purpose of the question is also to know whether it is possible to spoof a USB device's product ID and vendor ID without recompiling kernel modules.
– Jai
Feb 10 '15 at 10:30
Thank you for your response David. But sadly that did not help. sane-find-scanner still lists the vendor and product ID of the scanner as it did before the rule was made. ' scanimage -L ' is still unable to detect my scanner. The purpose of the question is also to know whether it is possible to spoof a USB device's product ID and vendor ID without recompiling kernel modules.
– Jai
Feb 10 '15 at 10:30
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f583206%2fhow-to-spoof-a-usb-devices-product-and-vendor-id%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I think it would be easier and cleaner to force the driver to accept different USB IDs as in crunchbang.org/forums/viewtopic.php?id=38471.
– David Foerster
Feb 8 '15 at 19:45