i have HP laptop and i am not able to set brightness

It has to do with either the intel or the graphics card driver. Mine did this. Mine was the intel driver, which I found with a short google search. Install the driver and it should work!