For anyone to whom HubuN has helped and was interested in the same things as Manuel Otto, you can change the name by editing the hexadecimal data from 0c09 to 020a. I have no reputation for adding comments, so I am adding a separate answer.
Using the HubuN example:
sudo /bin/hciconfig hci0 inqdata "0c097261737062657272797069020a00091002006b1d460217050d03001801180e110c1115110b1100"
"raspberrypi" is 7261737062657272797069
Let's say you want to change it to "MyName"
You will get a hex for "MyName" and fill in the remaining blank data 0
4d794e616d65 = "MyName"
7261737062657272797069 = "raspberrypi" 4d794e616d650000000000 = "MyName "
What gives you:
sudo /bin/hciconfig hci0 inqdata "0c094d794e616d650000000000020a00091002006b1d460217050d03001801180e110c1115110b1100"
I am not very familiar with the rest of the hex code, so if anyone else wants to explain this or even provide a simpler solution, feel free to.
(Note: you can use a tool like this to convert text to HEX)
source share